Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.