Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Adde PROCESS_IMAGE flag
  • Loading branch information
fnhipster authored Feb 26, 2021
1 parent 04a3d3e commit ff9881c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM node:10.20.1-slim AS stage1

ENV MAGENTO_URL=https://venia.magento.com/graphql
ENV http://pwa-cloud.storystore.dev/api/graphql
ENV GOOGLE_ANALYTICS=UA-168656142-1
ENV CLOUD_MODE=true
ENV PROCESS_IMAGES=true

RUN mkdir -p /pwa

Expand All @@ -20,13 +21,14 @@ RUN npm prune --production

FROM node:10.20.1-slim

ENV MAGENTO_URL=https://venia.magento.com/graphql
ENV http://pwa-cloud.storystore.dev/api/graphql
ENV CLOUD_MODE=true
ENV GOOGLE_ANALYTICS=UA-168656142-1
ENV PROCESS_IMAGES=true
EXPOSE 3000

COPY --from=stage1 /pwa /pwa

WORKDIR /pwa

CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit ff9881c

Please sign in to comment.