Created
August 3, 2019 06:45
-
-
Save korrio/0afaf8f235109718ca4e1374a79c1738 to your computer and use it in GitHub Desktop.
sure-web Dockerfile
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
# base node image | |
FROM node:10 | |
WORKDIR /usr/src/app | |
ENV PORT 8080 | |
ENV HOST 0.0.0.0 | |
COPY package*.json ./ | |
RUN npm install --only=production | |
# Copy local nuxt code to the container | |
COPY . . | |
# Build production app | |
RUN npm run build | |
# Start the service | |
CMD npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment