Update Dockerfile
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -4,17 +4,15 @@ ENV UID=99
|
|||||||
ENV GUID=100
|
ENV GUID=100
|
||||||
|
|
||||||
RUN deluser node
|
RUN deluser node
|
||||||
RUN adduser -u $UID -D foundry
|
RUN addgroup -g $GUID foundry \
|
||||||
|
&& adduser -u $UID -G foundry -s /bin/sh -D foundry
|
||||||
|
|
||||||
USER foundry
|
USER foundry
|
||||||
|
|
||||||
|
RUN mkdir -p /home/foundry/fvtt
|
||||||
RUN mkdir -p /home/foundry/data
|
RUN mkdir -p /home/foundry/data
|
||||||
RUN mkdir -p /home/foundry/app
|
|
||||||
|
|
||||||
WORKDIR /home/foundry/data
|
WORKDIR /home/foundry/fvtt
|
||||||
COPY --chown=$UID /foundry/data/ .
|
|
||||||
|
|
||||||
WORKDIR /home/foundry/app
|
|
||||||
COPY /foundryvtt/ .
|
|
||||||
|
|
||||||
EXPOSE 30000
|
EXPOSE 30000
|
||||||
CMD ["node", "/home/foundry/app/resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ]
|
CMD [ "node", "resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ]
|
||||||
Reference in New Issue
Block a user