Skip to content

Instantly share code, notes, and snippets.

@ashmore11
Created January 15, 2021 11:01
Show Gist options
  • Save ashmore11/f0965482a34df534e432fb48801bd88b to your computer and use it in GitHub Desktop.
Save ashmore11/f0965482a34df534e432fb48801bd88b to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (Docker app)
FROM node:12-alpine
WORKDIR /usr/src/app
ARG CMS_GRAPHQL_URL
ENV CMS_GRAPHQL_URL=$CMS_GRAPHQL_URL
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