Skip to content

Instantly share code, notes, and snippets.

@tminhduc2811
Forked from krazyjakee/Dockerfile
Created July 24, 2020 00:59
Show Gist options
  • Save tminhduc2811/ef64b02c43b0c9c6ab0742ee42bd6b67 to your computer and use it in GitHub Desktop.
Save tminhduc2811/ef64b02c43b0c9c6ab0742ee42bd6b67 to your computer and use it in GitHub Desktop.
Razzle Docker Container
FROM node:alpine
ENV NODE_ENV production
ENV HOST 0.0.0.0
ENV PORT 80
ENV RAZZLE_CUSTOM_VARIABLE x
# Bundle APP files
COPY build .
COPY package.json .
COPY package-lock.json .
COPY build/public public
RUN npm install --production
CMD [ "node", "build/server.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment