Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dockerfiles/3.4.1-browsers/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git
.bundle
log/
tmp/
public/assets/
,*
14 changes: 14 additions & 0 deletions dockerfiles/3.4.1-browsers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,18 @@ RUN sudo apt-get update && sudo apt-get install -y cmake shared-mime-info
# - This runs as root (before `USER circleci`), so the bundler is system-wide
RUN gem install bundler -v '~> 2.7.0' --no-document

RUN mkdir -p /home/circleci/project && chown circleci:circleci /home/circleci/project

USER circleci

WORKDIR /home/circleci/project

# Ensure .dockerignore exists so we don't accidentally bake
# local assets into the image
COPY .dockerignore ./

COPY --chown=circleci:circleci . .

# Wipe any potential metadata and force a total recompile
RUN bundle exec rake assets:clobber
RUN RAILS_ENV=production bundle exec rake assets:precompile