Skip to content

Instantly share code, notes, and snippets.

@wayanjimmy
Created February 17, 2018 15:22
Show Gist options
  • Save wayanjimmy/36878b8eb3ec1d60b464eb1d5e1bc402 to your computer and use it in GitHub Desktop.
Save wayanjimmy/36878b8eb3ec1d60b464eb1d5e1bc402 to your computer and use it in GitHub Desktop.
Dockerfile rails dev
FROM ruby:2.5.0-alpine
RUN apk update && apk add nodejs build-base libxml2-dev libxslt-dev postgresql postgresql-dev
RUN mkdir /app
WORKDIR /app
COPY Gemfile ./Gemfile
COPY Gemfile.lock ./Gemfile.lock
RUN bundle install -j 20
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment