Skip to content

Instantly share code, notes, and snippets.

@hagzag
Created May 11, 2020 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagzag/8a2c77d74a30e98e64f704339cd84950 to your computer and use it in GitHub Desktop.
Save hagzag/8a2c77d74a30e98e64f704339cd84950 to your computer and use it in GitHub Desktop.
cat << EOF > Dockerfile
FROM node:14.2-alpine
RUN mkdir -p /app
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY . /app
EXPOSE 8080
CMD [ "npm", "start" ]
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment