mirror of
https://gitlab.com/Snogard/kaido.git
synced 2025-06-25 02:13:00 +02:00
31 lines
633 B
Docker
31 lines
633 B
Docker
FROM docker.io/node:14-alpine3.13
|
|
|
|
LABEL name=foundry
|
|
LABEL version=1.0
|
|
|
|
ENV UID=1000
|
|
ENV GUID=1000
|
|
|
|
RUN apk --update --no-cache add jq
|
|
RUN deluser node
|
|
RUN addgroup -g $GUID foundry \
|
|
&& adduser -u $UID -G foundry -s /bin/sh -D foundry
|
|
|
|
USER foundry
|
|
|
|
RUN mkdir -p /home/foundry/data
|
|
|
|
## try
|
|
RUN mkdir -p /home/foundry/.local/share/FoundryVTT
|
|
COPY src /home/foundry/src
|
|
|
|
RUN mkdir -p /home/foundry/tmp
|
|
|
|
COPY ./foundry /home/foundry/instance
|
|
|
|
WORKDIR /home/foundry/instance
|
|
|
|
EXPOSE 30000/TCP
|
|
|
|
ENTRYPOINT ["/home/foundry/src/entrypoint.sh"]
|
|
CMD ["resources/app/main.js", "--headless", "--noupdate", "--dataPath=/home/foundry/data"] |