Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created September 14, 2019 06:58
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 luandevpro/2eeb169589edc65fcf8ff6ad267428fc to your computer and use it in GitHub Desktop.
Save luandevpro/2eeb169589edc65fcf8ff6ad267428fc to your computer and use it in GitHub Desktop.
# base node image
FROM alpine
RUN apk add --update nodejs nodejs-npm
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