-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from fnf-org/kig/dockerfile-fix
Fixing Dockerfile & upgrade Yarn packages
- Loading branch information
Showing
5 changed files
with
4,038 additions
and
8,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ RUN npm install -g [email protected] && \ | |
rm -rf /tmp/node-build-master | ||
|
||
# Install application gems | ||
COPY Gemfile Gemfile.lock ./ | ||
COPY .ruby-version Gemfile Gemfile.lock ./ | ||
RUN bundle install && \ | ||
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ | ||
bundle exec bootsnap precompile --gemfile | ||
|
@@ -88,6 +88,9 @@ EXPOSE 3000 | |
|
||
RUN chmod 755 /rails/bin/docker-entrypoint | ||
|
||
# Remove master key so that the Docker image does not have it | ||
RUN rm -f config/master.key | ||
|
||
ENV RAILS_ENV=production | ||
|
||
# Entrypoint prepares the database. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.