-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This image's actual base image | ||
FROM starefossen/ruby-node:2-10 | ||
|
||
LABEL maintainer="Aaron Collier <aaron.collier@stanford.edu>" | ||
|
||
# Set default RAILS environment | ||
ENV RAILS_ENV=production | ||
ENV RAILS_SERVE_STATIC_FILES=true | ||
ENV BUNDLER_VERSION=2.0.1 | ||
ARG SECRET_KEY_BASE | ||
|
||
# Create and set the working directory as /opt | ||
WORKDIR /opt | ||
|
||
RUN gem install bundler | ||
|
||
# Copy the Gemfile and Gemfile.lock, and run bundle install prior to copying all source files | ||
# This is an optimization that will prevent the need to re-run bundle install when only source | ||
# code is changed and not dependencies. | ||
COPY Gemfile /opt | ||
COPY Gemfile.lock /opt | ||
|
||
RUN bundle config build.nokogiri --use-system-libraries \ | ||
&& bundle install | ||
|
||
COPY . . | ||
|
||
# Start the server by default, listening for all connections | ||
CMD puma -C config/puma.rb |
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