Skip to content

Instantly share code, notes, and snippets.

@josetapadas
Last active January 6, 2017 18:11
Show Gist options
  • Save josetapadas/044fda80719f218c1a40a0b7492bdd3e to your computer and use it in GitHub Desktop.
Save josetapadas/044fda80719f218c1a40a0b7492bdd3e to your computer and use it in GitHub Desktop.
Sample Dockerfile
FROM ruby:2.3-slim
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
build-essential \
nodejs \
libpq-dev \
git \
tzdata \
libxml2-dev \
libxslt-dev \
ssh \
&& rm -rf /var/lib/apt/lists/*
ENV APP_HOME /opt/fooapp
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
ENV GEM_HOME /opt/fooapp/vendor/bundle
ENV PATH $GEM_HOME/bin:$PATH
ENV BUNDLE_PATH $GEM_HOME
ENV BUNDLE_BIN $BUNDLE_PATH/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment