Update Dockerfile

This commit is contained in:
Beeant 2022-06-05 19:20:32 +08:00 committed by GitHub
parent 394b25de5c
commit 87968b5124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,6 @@ RUN npm install -g pkg grunt grunt-cli
WORKDIR /build
## Clone
FROM setup-stage as clone-stage
ARG tag=v${PRODUCT_VERSION}.${BUILD_NUMBER}
@ -31,7 +29,7 @@ RUN git clone --quiet --depth 1 https://github.com/ONLYOFFICE/sdkjs.git /b
RUN git clone --quiet --depth 1 https://github.com/ONLYOFFICE/web-apps.git /build/web-apps
## Build
FROM clone-stage as build-stage
FROM clone-stage as patch-stage
# patch
COPY server.patch /build/server.patch
@ -41,7 +39,7 @@ RUN sudo sed -i s/false/true/g /build/web-apps/apps/documenteditor/mobile/src/li
## Build
FROM clone-stage as build-stage
FROM patch-stage as build-stage
# build server with license checks patched
WORKDIR /build/server