Feat: Docker use `GENERATE_SOURCEMAP` in the frontend build section to avoid generating map files.

pull/1380/head
AHdark 3 years ago committed by GitHub
parent 98c7c1ae0d
commit d55cb73f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,8 +9,10 @@ RUN git clone --recurse-submodules https://github.com/cloudreve/Cloudreve.git
# build frontend
WORKDIR /cloudreve_builder/Cloudreve/assets
ENV GENERATE_SOURCEMAP false
RUN yarn install --network-timeout 1000000
RUN yarn run build && find . -name "*.map" -type f -delete
RUN yarn run build
# build backend
WORKDIR /cloudreve_builder/Cloudreve

Loading…
Cancel
Save