-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:20.12.1-bullseye-slim
WORKDIR /chatgpt2graph
RUN apt-get -y update && apt-get -y --no-install-recommends install bash && \
apt-get -y clean && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /chatgpt2graph && \
chmod -R a+wrX /chatgpt2graph && \
chown -R node:node /chatgpt2graph
COPY --chown=node:node . /chatgpt2graph
USER node
# ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
# ENV PATH=/home/node/.npm-global/bin:$PATH
WORKDIR /chatgpt2graph
RUN npm ci --loglevel silly . --timeout=3000000 --fetch-retries=3 --fetch-retry-factor=1 --fetch-retry-mintimeout=1000 --fetch-retry-maxtimeout=60000
# This is where the user will mount their data to.
WORKDIR /data
ENTRYPOINT ["npx", "--prefix", "/chatgpt2graph", "chatgpt2graph"]
CMD ["--help"]
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD npx chatgpt2graph --version || exit 1