From 79c40e32879c0b57891dc1d2eb1732e77a2b46a8 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Sun, 21 Jun 2020 16:11:57 -0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd1b3be..25dd3e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,17 +4,15 @@ ENV UID=99 ENV GUID=100 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 + +RUN mkdir -p /home/foundry/fvtt RUN mkdir -p /home/foundry/data -RUN mkdir -p /home/foundry/app -WORKDIR /home/foundry/data -COPY --chown=$UID /foundry/data/ . - -WORKDIR /home/foundry/app -COPY /foundryvtt/ . +WORKDIR /home/foundry/fvtt EXPOSE 30000 -CMD ["node", "/home/foundry/app/resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ] \ No newline at end of file +CMD [ "node", "resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ] \ No newline at end of file