Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Created August 26, 2016 12:34
Show Gist options
  • Save rotemtam/8b3914df44f1b0336968f5c3fc72a1ec to your computer and use it in GitHub Desktop.
Save rotemtam/8b3914df44f1b0336968f5c3fc72a1ec to your computer and use it in GitHub Desktop.
Example Apex+Node Dockerfile
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