We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11e5687 commit 6db5242Copy full SHA for 6db5242
Dockerfile
@@ -1,15 +1,24 @@
1
-FROM bitnami/ruby:latest
+FROM cgr.dev/chainguard/ruby:latest-dev as builder
2
3
-WORKDIR /app
+ENV GEM_HOME=/work/vendor
4
+ENV GEM_PATH=${GEM_PATH}:/work/vendor
5
+COPY Gemfile /work/
6
+#COPY Gemfile.lock /work/
7
+RUN gem install bundler && bundle install
8
-COPY . .
-RUN bundle install
9
+FROM cgr.dev/chainguard/ruby:latest
10
+
11
12
13
14
+COPY --from=builder /work/ /work/
15
16
ARG COMMIT="(not set)"
17
ARG LASTMOD="(not set)"
18
ENV COMMIT=$COMMIT
19
ENV LASTMOD=$LASTMOD
20
-EXPOSE 4567
-CMD ["ruby", "./regexplanet.rb"]
21
+WORKDIR /work
22
+COPY . .
23
24
+ENTRYPOINT [ "ruby", "./regexplanet.rb" ]
0 commit comments