fix: Dockerfile
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
Beeant 2024-03-08 02:46:49 +00:00
parent 6b4f822896
commit ce4473e300
3 changed files with 532 additions and 5 deletions

View file

@ -11,9 +11,9 @@ ARG oo_root
ENV PRODUCT_VERSION=${product_version}
ENV BUILD_NUMBER=${build_number}
# set up node 14
ADD setup_14.x /node14
RUN sudo sh /node14
# set up node
ADD setup_16.x /node_init
RUN sudo sh /node_init
ARG build_deps="git make g++ nodejs"
@ -59,11 +59,15 @@ RUN cd /build/server && git apply --ignore-space-change --ignore-whitespace /b
## Build
FROM path-stage as build-stage
# install ms
WORKDIR /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter
RUN npm install ms --save-dev
# build server with license checks patched
WORKDIR /build/server
RUN make
RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node14-linux -o /build/converter
RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --targets=node14-linux --options max_old_space_size=4096 -o /build/docservice
RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/FileConverter --targets=node16-linux -o /build/converter
RUN pkg /build/build_tools/out/linux_64/onlyoffice/documentserver/server/DocService --targets=node16-linux --options max_old_space_size=4096 -o /build/docservice
# build web-apps with mobile editing
#WORKDIR /build/web-apps/build