Keeping webpack properly for build

This commit is contained in:
Frikky
2023-08-24 10:50:39 +02:00
parent 90eccc2587
commit 45a0583728
+4 -1
View File
@@ -8,9 +8,12 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
# Nocache yarn install
RUN yarn config set "strict-ssl" false -g
RUN yarn install --network-timeout 1000000
#RUN npm install
# copy only required files to not trigger rebuilding every time
COPY ./certs /usr/src/app/certs/
COPY ./public /usr/src/app/public/
@@ -18,7 +21,7 @@ COPY ./src /usr/src/app/src/
COPY ./*.sh /usr/src/app/
COPY ./*.json /usr/src/app/
RUN rm -rf /usr/src/app/node_modules/webpack
#RUN rm -rf /usr/src/app/node_modules/webpack
RUN yarn build
# Production environment