Created
January 15, 2021 11:01
-
-
Save ashmore11/f0965482a34df534e432fb48801bd88b to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (Docker app)
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/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