Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
don't ADD then RM, sensitive files will be layered in
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydpick committed Feb 3, 2016
1 parent f8d4f35 commit 6aa5ced
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Dockerfile.tester
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ WORKDIR /opt/uphold
COPY Gemfile /opt/uphold/Gemfile
COPY Gemfile.lock /opt/uphold/Gemfile.lock
RUN bundle install --without ui development
ADD . /opt/uphold

# remove un-needed directories
RUN rm -rf dev docs public views
ADD lib /opt/uphold/lib
ADD environment.rb tester.rb /opt/uphold/

ENTRYPOINT ["ruby", "tester.rb"]
7 changes: 4 additions & 3 deletions Dockerfile.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ WORKDIR /opt/uphold
COPY Gemfile /opt/uphold/Gemfile
COPY Gemfile.lock /opt/uphold/Gemfile.lock
RUN bundle install --without tester development
ADD . /opt/uphold

# remove un-needed directories
RUN rm -rf dev docs
ADD lib /opt/uphold/lib
ADD public /opt/uphold/public
ADD views /opt/uphold/views
ADD config.ru environment.rb ui.rb /opt/uphold/

EXPOSE 80
CMD ["bundle", "exec", "rackup", "config.ru", "-p", "80", "-s", "thin", "-o", "0.0.0.0"]

0 comments on commit 6aa5ced

Please sign in to comment.