Skip to content

Instantly share code, notes, and snippets.

@pdbradley
Created June 11, 2020 02:14
Show Gist options
  • Save pdbradley/d4f7211ca8ce2417eddcb2abdcd9fb14 to your computer and use it in GitHub Desktop.
Save pdbradley/d4f7211ca8ce2417eddcb2abdcd9fb14 to your computer and use it in GitHub Desktop.
Dockerfile for hasura rails postgres
FROM ruby:2.6.6-alpine
RUN apk add --update build-base postgresql-dev tzdata nodejs
RUN apk add yarn
RUN gem install bundler
ENV APP_HOME /app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
COPY Gemfile Gemfile.lock package.json yarn.lock $APP_HOME/
RUN bundle install
RUN yarn install --check-files
COPY . $APP_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment