Created
September 14, 2019 06:58
-
-
Save luandevpro/2eeb169589edc65fcf8ff6ad267428fc to your computer and use it in GitHub Desktop.
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 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