Skip to content

Commit

Permalink
chore: improve image building process
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszherba committed Aug 26, 2022
1 parent a80c54e commit c59e9f8
Show file tree
Hide file tree
Showing 3 changed files with 1,545 additions and 578 deletions.
2 changes: 2 additions & 0 deletions .vuestorefrontcloud/docker/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
internals
16 changes: 11 additions & 5 deletions .vuestorefrontcloud/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:16-alpine

ARG LAST_COMMIT
ARG NPM_USER
Expand Down Expand Up @@ -76,12 +76,18 @@ WORKDIR /var/www
COPY . .

RUN mv /var/www/packages/theme/nuxt.config.js /var/www/packages/theme/base.nuxt.config.js && cp .vuestorefrontcloud/docker/nuxt.config.additional.js /var/www/packages/theme/nuxt.config.js

RUN yarn install

RUN npx [email protected] workspace @vue-storefront/magento-theme add @sentry/tracing @nuxtjs/sentry

RUN yarn build && yarn cache clean --all
## Install and build
RUN apk add --no-cache --virtual .gyp \
python3 \
make \
g++ \
&& yarn install \
&& yarn cache clean --all \
&& apk del .gyp \
&& rm -rf ./packages/api-client/src

COPY .vuestorefrontcloud/docker/vue-storefront.sh /usr/local/bin/

RUN chmod a+x /usr/local/bin/vue-storefront.sh
Expand Down
Loading

0 comments on commit c59e9f8

Please sign in to comment.