Last active
January 6, 2017 18:11
-
-
Save josetapadas/044fda80719f218c1a40a0b7492bdd3e to your computer and use it in GitHub Desktop.
Sample Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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