Created
August 26, 2016 12:34
-
-
Save rotemtam/8b3914df44f1b0336968f5c3fc72a1ec to your computer and use it in GitHub Desktop.
Example Apex+Node Dockerfile
This file contains hidden or 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 node:4.2.3 | |
# Install Apex | |
WORKDIR /tmp | |
RUN wget https://raw.githubusercontent.com/apex/apex/master/install.sh && bash /tmp/install.sh | |
# Install dependencies | |
COPY package.json /srv/package.json | |
WORKDIR /srv | |
RUN npm i && mkdir /srv/src && mkdir /srv/infra | |
# Copy code into container | |
COPY src /srv/src | |
COPY infra /srv/infra | |
# Run | |
WORKDIR /srv/src | |
CMD ["apex", "deploy"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment