Skip to content

Instantly share code, notes, and snippets.

@ashmore11
Created January 15, 2021 11:00
Show Gist options
  • Save ashmore11/93a84b02cd8c341d1b732ade34c9a0fb to your computer and use it in GitHub Desktop.
Save ashmore11/93a84b02cd8c341d1b732ade34c9a0fb to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (Dockerfile cms)
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