-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
34a704f
commit d87e0f7
Showing
1 changed file
with
11 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
FROM ruby:2.6.6-alpine3.13 | ||
FROM ruby:2.6.6-alpine3.13 AS build | ||
|
||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git openssh build-base gcc wget git | ||
apk add --no-cache git openssh build-base gcc wget git | ||
|
||
RUN gem install bundler -v 2.3.6 | ||
|
||
WORKDIR /opt/representer | ||
|
||
COPY Gemfile Gemfile.lock . | ||
|
||
RUN bundle install | ||
|
||
FROM ruby:2.6.6-alpine3.13 AS runtime | ||
|
||
RUN apk add --no-cache bash | ||
|
||
WORKDIR /opt/representer | ||
|
||
COPY --from=build /usr/local/bundle /usr/local/bundle | ||
|
||
COPY . . | ||
|
||
ENTRYPOINT ["sh", "/opt/representer/bin/run.sh"] | ||
ENTRYPOINT ["sh", "/opt/representer/bin/run.sh"] |