Last active
July 21, 2018 14:10
-
-
Save sweetyclem/b0faf98cbdfcbe17a99c168777e23379 to your computer and use it in GitHub Desktop.
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
# Create an image based on this existing ruby image | |
FROM ruby:2.4.1 | |
# Install the software you need | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
apt-utils \ | |
build-essential \ | |
libpq-dev \ | |
libjpeg-dev \ | |
libpng-dev \ | |
nodejs | |
# Create a directory for your app | |
RUN mkdir -p /app | |
# Copy the files needed for the bundle install | |
COPY ./Gemfile /app/Gemfile | |
COPY ./Gemfile.lock /app/Gemfile.lock | |
# Set the working directory for all following commands | |
WORKDIR /app | |
# Install gems | |
RUN gem install foreman | |
RUN bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment