Skip to content

Instantly share code, notes, and snippets.

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