Keeping webpack properly for build
This commit is contained in:
+4
-1
@@ -8,9 +8,12 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
|||||||
|
|
||||||
COPY package.json /usr/src/app/package.json
|
COPY package.json /usr/src/app/package.json
|
||||||
|
|
||||||
|
# Nocache yarn install
|
||||||
RUN yarn config set "strict-ssl" false -g
|
RUN yarn config set "strict-ssl" false -g
|
||||||
RUN yarn install --network-timeout 1000000
|
RUN yarn install --network-timeout 1000000
|
||||||
|
|
||||||
|
#RUN npm install
|
||||||
|
|
||||||
# copy only required files to not trigger rebuilding every time
|
# copy only required files to not trigger rebuilding every time
|
||||||
COPY ./certs /usr/src/app/certs/
|
COPY ./certs /usr/src/app/certs/
|
||||||
COPY ./public /usr/src/app/public/
|
COPY ./public /usr/src/app/public/
|
||||||
@@ -18,7 +21,7 @@ COPY ./src /usr/src/app/src/
|
|||||||
COPY ./*.sh /usr/src/app/
|
COPY ./*.sh /usr/src/app/
|
||||||
COPY ./*.json /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
|
RUN yarn build
|
||||||
|
|
||||||
# Production environment
|
# Production environment
|
||||||
|
|||||||
Reference in New Issue
Block a user