Skip to content

Commit

Permalink
ref: DOCSERVER_NETWORK_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Jun 28, 2024
1 parent 0eb63e4 commit b49a378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:14.21.3-buster

ENV DOCS_ADDRESS=''
ENV DOCSERVER_NETWORK_NAME=''
ENV DOCS_PORT='8008'

ENV PORT=80
Expand All @@ -10,7 +10,7 @@ ARG BUILD_BRANCH=master
RUN git clone --depth=1 --recursive --shallow-submodules -b $BUILD_BRANCH https://github.com/ONLYOFFICE/document-server-integration.git
WORKDIR /document-server-integration/web/documentserver-example/nodejs/

RUN sed -i "s/documentserver/$DOCS_ADDRESS:$DOCS_PORT/" config/default.json
RUN sed -i "s/documentserver/$DOCSERVER_NETWORK_NAME:$DOCS_PORT/" config/default.json
RUN sed -i "s/\"port\".*,/\"port\"\: ${PORT},/" config/default.json

RUN npm install
Expand Down

0 comments on commit b49a378

Please sign in to comment.