Skip to content

Instantly share code, notes, and snippets.

@iqbalhasnan
Last active November 12, 2021 15:12
Show Gist options
  • Save iqbalhasnan/4d0935edf228128d9181d0e27e80631f to your computer and use it in GitHub Desktop.
Save iqbalhasnan/4d0935edf228128d9181d0e27e80631f to your computer and use it in GitHub Desktop.
Rails 6 Docker Image - Ruby 3, Postgres, Webpack https://hub.docker.com/r/iqbalhasnan/rails-6-dev
FROM ruby:3.0.2-alpine
ENV ROOT=/var/www/app \
BUNDLE_PATH=/var/www/app/vendor/bundle
ENV BUNDLE_BIN=$BUNDLE_PATH/bin
ENV PATH $ROOT/bin:$BUNDLE_BIN:$PATH
RUN apk update && apk upgrade && apk add --update --no-cache \
build-base \
curl-dev \
nodejs \
postgresql-dev \
tzdata \
yarn && rm -rf /var/cache/apk/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment