-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
153 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM ruby:3.3 | ||
|
||
# throw errors if Gemfile has been modified since Gemfile.lock | ||
RUN bundle config --global frozen 1 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
imagemagick \ | ||
inkscape \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY lib/favicon_factory/version.rb ./lib/favicon_factory/version.rb | ||
COPY favicon_factory.gemspec Gemfile Gemfile.lock . | ||
RUN bundle install | ||
|
||
COPY . . | ||
|
||
CMD ["bin/console"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM ruby:3.3 | ||
|
||
# throw errors if Gemfile has been modified since Gemfile.lock | ||
RUN bundle config --global frozen 1 | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libvips \ | ||
libvips-tools \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
RUN apt-get remove -y --purge imagemagick | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY lib/favicon_factory/version.rb ./lib/favicon_factory/version.rb | ||
COPY favicon_factory.gemspec Gemfile Gemfile.lock . | ||
RUN bundle install | ||
|
||
COPY . . | ||
|
||
CMD ["bin/console"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#1 [internal] load .dockerignore | ||
#1 transferring context: 2B done | ||
#1 DONE 0.0s | ||
|
||
#2 [internal] load build definition from Dockerfile | ||
#2 transferring dockerfile: 317B done | ||
#2 DONE 0.0s | ||
|
||
#3 [internal] load metadata for docker.io/library/ruby:3.3 | ||
#3 DONE 1.4s | ||
|
||
#4 [1/7] FROM docker.io/library/ruby:3.3@sha256:797d68561a91415e05fd95178f467d86d77bce2d4f17f32683241a687cbd1705 | ||
#4 DONE 0.0s | ||
|
||
#5 [internal] load build context | ||
#5 transferring context: 50.74kB 0.1s done | ||
#5 DONE 0.1s | ||
|
||
#6 [2/7] RUN bundle config --global frozen 1 | ||
#6 CACHED | ||
|
||
#7 [3/7] WORKDIR /usr/src/app | ||
#7 CACHED | ||
|
||
#8 [4/7] COPY lib/favicon_factory/version.rb favicon_factory.gemspec Gemfile Gemfile.lock ./ | ||
#8 CACHED | ||
|
||
#9 [5/7] RUN ls | ||
#9 CACHED | ||
|
||
#10 [6/7] RUN bundle install | ||
#10 0.363 Bundler 2.5.9 is running, but your lockfile was generated with 2.5.4. Installing Bundler 2.5.4 and restarting using that version. | ||
#10 2.280 Fetching gem metadata from https://rubygems.org/. | ||
#10 2.374 Fetching bundler 2.5.4 | ||
#10 2.716 Installing bundler 2.5.4 | ||
#10 3.217 | ||
#10 3.217 [!] There was an error parsing `Gemfile`: | ||
#10 3.217 [!] There was an error while loading `favicon_factory.gemspec`: cannot load such file -- /usr/src/app/lib/favicon_factory/version. Bundler cannot continue. | ||
#10 3.217 | ||
#10 3.217 # from /usr/src/app/favicon_factory.gemspec:3 | ||
#10 3.217 # ------------------------------------------- | ||
#10 3.217 # | ||
#10 3.217 > require_relative "lib/favicon_factory/version" | ||
#10 3.217 # | ||
#10 3.217 # ------------------------------------------- | ||
#10 3.217 . Bundler cannot continue. | ||
#10 3.217 | ||
#10 3.217 # from /usr/src/app/Gemfile:6 | ||
#10 3.217 # ------------------------------------------- | ||
#10 3.217 # # Specify your gem's dependencies in favicon_factory.gemspec | ||
#10 3.217 > gemspec | ||
#10 3.217 # | ||
#10 3.217 # ------------------------------------------- | ||
#10 ERROR: process "/bin/sh -c bundle install" did not complete successfully: exit code: 14 | ||
------ | ||
> [6/7] RUN bundle install: | ||
#10 3.217 # | ||
#10 3.217 # ------------------------------------------- | ||
#10 3.217 . Bundler cannot continue. | ||
#10 3.217 | ||
#10 3.217 # from /usr/src/app/Gemfile:6 | ||
#10 3.217 # ------------------------------------------- | ||
#10 3.217 # # Specify your gem's dependencies in favicon_factory.gemspec | ||
#10 3.217 > gemspec | ||
#10 3.217 # | ||
#10 3.217 # ------------------------------------------- | ||
------ | ||
Dockerfile:10 | ||
-------------------- | ||
8 | COPY lib/favicon_factory/version.rb favicon_factory.gemspec Gemfile Gemfile.lock ./ | ||
9 | RUN ls | ||
10 | >>> RUN bundle install | ||
11 | | ||
12 | COPY . . | ||
-------------------- | ||
ERROR: failed to solve: process "/bin/sh -c bundle install" did not complete successfully: exit code: 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters