Skip to content

Commit

Permalink
Docker-issue with ONBUILD-commands
Browse files Browse the repository at this point in the history
On up to date docker installation the ONBUILD commands in the
old docker image we use doesn't seem to run as they should,
so I've copied the commands into the Dockerfile. If ONBUILD-
commands run it doesn't change anything so there is no
significant downside.
  • Loading branch information
kjetiljd committed Nov 18, 2020
1 parent ebeaec0 commit 069468a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ FROM ruby:1.9-onbuild

EXPOSE 3000
CMD /usr/local/bin/ruby web_server.rb

# -onbuild should have taken care of this
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
RUN bundle install
COPY . /usr/src/app

0 comments on commit 069468a

Please sign in to comment.