Created
May 25, 2017 05:09
-
-
Save nrempel/634f23ac124f2ac1b8b46686cd2df8f4 to your computer and use it in GitHub Desktop.
Example code for https://rempel.world/guides/docker-development-environment.html
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
# Inherit from node base image | |
FROM node | |
# This is an alternative to mounting our source code as a volume. | |
# ADD . /app | |
# Install Yarn repository | |
RUN curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
# Install OS dependencies | |
RUN apt-get update | |
RUN apt-get install yarn | |
# Install Node dependencies | |
RUN yarn install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment