Skip to content

Instantly share code, notes, and snippets.

@gaulatti
Created April 6, 2020 01:09
Show Gist options
  • Save gaulatti/9a4f889ce71a6d2247ca2d47612ef850 to your computer and use it in GitHub Desktop.
Save gaulatti/9a4f889ce71a6d2247ca2d47612ef850 to your computer and use it in GitHub Desktop.
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