Skip to content

Instantly share code, notes, and snippets.

@joaofnds
Last active July 16, 2018 14:01
Show Gist options
  • Save joaofnds/d8a1ade67c39ff98dc74d0374f2b91c6 to your computer and use it in GitHub Desktop.
Save joaofnds/d8a1ade67c39ff98dc74d0374f2b91c6 to your computer and use it in GitHub Desktop.
Dockerfile for joaofnds/rails-alpine
FROM ruby:alpine
# Minimal requirements to run a Rails app
RUN apk add --no-cache --update build-base \
linux-headers \
git \
postgresql-dev \
tzdata \
nodejs
@joaofnds
Copy link
Author

joaofnds commented Jul 1, 2018

You don't need nodejs if you're using rails for API only
You don't need postgresql-dev if you're not using Postgres as your DB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment