diff --git a/Dockerfile b/Dockerfile index c336367..4c4389d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,16 @@ MAINTAINER fithwum ENV UID=99 ENV GUID=100 -USER node +RUN deluser node +RUN addgroup -g $GUID foundry \ + && adduser -u $UID -G foundry -s /bin/sh -D foundry -RUN mkdir -p /home/foundry/fvtt -RUN mkdir -p /home/foundry/data +USER foundry -WORKDIR /home/foundry/fvtt +RUN mkdir -p /foundry/fvtt +RUN mkdir -p /foundry/data + +WORKDIR /foundry/fvtt EXPOSE 30000 -CMD [ "node", "resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ] \ No newline at end of file +CMD [ "node", "resources/app/main.js", "--headless", "--dataPath=/foundry/data" ] \ No newline at end of file