Skip to content

Commit ec2283c

Browse files
committed
Fix gem installation
1 parent 23d2f6d commit ec2283c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Dockerfile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
FROM ruby:2.6.4-alpine3.9
1+
FROM ruby:2.7.3-alpine3.13
22

33
LABEL maintainer="[email protected]"
44

55
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
66

77
RUN apk add --no-cache \
8-
git=2.20.4-r0
8+
git=2.30.2-r0
99

1010
WORKDIR /
1111
COPY Gemfile Gemfile
12-
RUN gem install bundler --version 2.2.15 \
13-
&& bundle install --system \
12+
RUN apk add --no-cache \
13+
--virtual .gem-installdeps \
14+
build-base=0.5-r2 \
15+
&& gem install bundler --version 2.2.15 \
16+
&& bundle config set --local system 'true' \
17+
&& bundle install \
1418
&& gem uninstall bundler \
15-
&& rm Gemfile
19+
&& rm Gemfile Gemfile.lock \
20+
&& rm -rf $GEM_HOME/cache \
21+
&& apk del .gem-installdeps
1622

1723
ENV SRC_PATH /usr/local/src/your-app
1824
RUN mkdir -p "${SRC_PATH}"

0 commit comments

Comments
 (0)