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 34a704f commit 0029d64Copy full SHA for 0029d64
Dockerfile
@@ -1,16 +1,22 @@
1
-FROM ruby:2.6.6-alpine3.13
+FROM ruby:2.6.6-alpine3.13 AS build
2
3
RUN apk update && apk upgrade && \
4
- apk add --no-cache bash git openssh build-base gcc wget git
+ apk add --no-cache git openssh build-base gcc wget git
5
6
RUN gem install bundler -v 2.3.6
7
8
-WORKDIR /opt/representer
9
-
10
COPY Gemfile Gemfile.lock .
11
12
RUN bundle install
13
+FROM ruby:2.6.6-alpine3.13 AS runtime
+
14
+RUN apk add --no-cache bash
15
16
+WORKDIR /opt/representer
17
18
+COPY --from=build /usr/local/bundle /usr/local/bundle
19
20
COPY . .
21
22
ENTRYPOINT ["sh", "/opt/representer/bin/run.sh"]
0 commit comments