Created
January 15, 2021 11:00
-
-
Save ashmore11/93a84b02cd8c341d1b732ade34c9a0fb to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (Dockerfile cms)
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:12-alpine | |
WORKDIR /usr/src/cms | |
ENV NODE_ENV=production | |
COPY package*.json ./ | |
RUN npm ci --production && npm cache clean --force | |
COPY . . | |
RUN npm run build | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment