Last active
July 24, 2020 00:59
-
-
Save krazyjakee/4ebf64c479d66fcb110cfc69debad6ff to your computer and use it in GitHub Desktop.
Razzle Docker Container
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
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