mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
* Add Dockerfile for nodejs DS Example * Removed unnecessary lines * Add expose 3000 port to Dockerfile Co-authored-by: Cyger <cyger@centos7.server>
29 lines
996 B
Docker
29 lines
996 B
Docker
FROM node:buster
|
|
LABEL maintainer Ascensio System SIA <support@onlyoffice.com>
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
LANGUAGE=en_US:en \
|
|
LC_ALL=en_US.UTF-8 \
|
|
NODE_ENV=production-linux \
|
|
NODE_CONFIG_DIR=/etc/onlyoffice/documentserver-example/
|
|
|
|
WORKDIR /var/www/onlyoffice/documentserver-example/
|
|
COPY . /var/www/onlyoffice/documentserver-example/
|
|
|
|
RUN groupadd --system --gid 1001 ds && \
|
|
useradd --system -g ds --no-create-home --shell /sbin/nologin --uid 1001 ds && \
|
|
chown -R ds:ds /var/www/onlyoffice/documentserver-example/ && \
|
|
mkdir -p /var/lib/onlyoffice/documentserver-example/ && \
|
|
chown -R ds:ds /var/lib/onlyoffice/ && \
|
|
mv files /var/lib/onlyoffice/documentserver-example/ && \
|
|
mkdir -p /etc/onlyoffice/documentserver-example/ && \
|
|
chown -R ds:ds /etc/onlyoffice/ && \
|
|
mv config/* /etc/onlyoffice/documentserver-example/ && \
|
|
npm install
|
|
|
|
EXPOSE 3000
|
|
|
|
USER ds
|
|
|
|
ENTRYPOINT /var/www/onlyoffice/documentserver-example/docker-entrypoint.sh npm start
|