forked from vuestorefront/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve image building process
- Loading branch information
1 parent
a80c54e
commit c59e9f8
Showing
3 changed files
with
1,545 additions
and
578 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
**/node_modules | ||
internals |
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
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 | ||
|
@@ -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 | ||
|
Oops, something went wrong.