Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FROM ruby:2.7.0
# Install Linux Dependences
RUN apt-get update -qq && apt-get install -y build-essential default-mysql-client
# Set Environmental Variables
ENV APP_HOME /tukwila
# Set Workdir
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
# Install Dependences
ADD Gemfile* $APP_HOME/
RUN bundle install
# Copy Files
ADD . $APP_HOME
# Set runtime execution
CMD ["rails", "server", "-b", "0.0.0.0", "-e", "production"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment