-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 979 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# To build it manually:
# sudo docker build -t nativedocumentsstore .
# sudo docker run -d -P -v nddata:/nddata --name ndstore nativedocuments/nativedocumentsstore
# sudo docker run -d -p 6000:6000 -v ~/nds.license:/opt/NativeDocumentsStore/nds.license --name ndstore nativedocuments/nativedocumentsstore
FROM busybox:musl
ARG version_suffix=
VOLUME ["/nddata"]
ADD http://downloads.nativedocuments.com/NativeDocumentsStore${version_suffix}.tar.gz /tmp/
RUN mkdir /opt
RUN tar xzf /tmp/NativeDocumentsStore${version_suffix}.tar.gz -C /opt
RUN rm -f /tmp/NativeDocumentsStore${version_suffix}.tar.gz
ENV NDS_LOG_FILE=/dev/stdout
ENV NDS_LOG_DIR=/nddata/log/NativeDocumentsStore
ENV NDS_CONVERTER_DOCUMENTS_DIR=/nddata/storage
ENV NDS_BASE_DIR=/nddata/storage
ENV NDS_MAX_CONNECTIONS=500
ENV NDS_VERBOSE=2
ENTRYPOINT ["/bin/sh", "-c", "mkdir -p /nddata/storage; mkdir -p /nddata/log/NativeDocumentsStore; exec /opt/NativeDocumentsStore/ndstored service=0.0.0.0:6000"]
EXPOSE 6000