Skip to content

Instantly share code, notes, and snippets.

@zouhir
Created June 20, 2017 00:17
Show Gist options
  • Save zouhir/c913209fdd6e1e02573f6390b03143a4 to your computer and use it in GitHub Desktop.
Save zouhir/c913209fdd6e1e02573f6390b03143a4 to your computer and use it in GitHub Desktop.
Preact Boilerplate Dockerfile
FROM node:6.9.2
# File Author / Maintainer
LABEL authors="Zouhir Chahoud <[email protected]>"
# Install app dependencies
COPY package.json /www/package.json
RUN cd /www; npm install
# Copy app source
COPY . /www
# Set work directory to /www
WORKDIR /www
# expose the port to outside world
EXPOSE 8080
# start command as per package.json
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment