diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10a5d4a5..d2e79ff7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,8 +81,6 @@ jobs: uses: actions/checkout@v4 - uses: bahmutov/npm-install@v1 - env: - NODE_ENV: production with: working-directory: frontend diff --git a/Dockerfile b/Dockerfile index 59ca8e5e..5c6d8edd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM node:lts-alpine as npm_builder WORKDIR /frontend COPY ./frontend ./ -RUN if [ ! -d /frontend/node_modules ]; then yarn install --production --prefer-offline --frozen-lockfile; fi -RUN yarn run generate +RUN if [ ! -d /frontend/node_modules ]; then yarn install --production --prefer-offline --frozen-lockfile; fi && \ + yarn run generate FROM alpine:edge