Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 143dc2f

Browse files
author
Jonathan Claudius
authored
Merge pull request #511 from rrazor/fix_510
Fix 510: tweak Dockerfile to work around upstream environment issue with Ruby 2.7.0
2 parents 9591e92 + 90ed410 commit 143dc2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ WORKDIR /app
99
# required for ssh-keyscan
1010
RUN apk --update add openssh-client
1111

12-
RUN apk --update add --virtual build-dependencies ruby-dev build-base && \
13-
gem install bundler && \
12+
ENV GEM_HOME /usr/local/bundle/ruby/$RUBY_VERSION
13+
14+
RUN apk --update add --virtual build-dependencies build-base && \
1415
bundle install && \
15-
apk del build-dependencies && \
16+
apk del build-dependencies build-base && \
1617
rm -rf /var/cache/apk/*
1718

1819
CMD /app/bin/ssh_scan

0 commit comments

Comments
 (0)