mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-02-01 07:21:57 +08:00
chore: better way to remove frontend map files (#1380)
* Feat: better way to remove frontend map files * Feat: Docker use `GENERATE_SOURCEMAP` in the frontend build section to avoid generating map files.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user