From 6fe267aedba65a572c6a294f9d5a26be95f631c9 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Sun, 21 Jun 2020 17:34:08 -0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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