This commit is contained in:
parent
6b4f822896
commit
ce4473e300
3 changed files with 532 additions and 5 deletions
14
Dockerfile
14
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue