Skip to content

Instantly share code, notes, and snippets.

@korrio
Created August 3, 2019 06:45
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 korrio/0afaf8f235109718ca4e1374a79c1738 to your computer and use it in GitHub Desktop.
Save korrio/0afaf8f235109718ca4e1374a79c1738 to your computer and use it in GitHub Desktop.
sure-web Dockerfile
# 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