From 8d692f2ab3628e40477ba42fc5786da8bf74b8e7 Mon Sep 17 00:00:00 2001 From: fithwum <34775371+fithwum@users.noreply.github.com> Date: Mon, 22 Jun 2020 06:57:11 -0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82ecef5..4107637 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,23 @@ FROM alpine:latest MAINTAINER fithwum -ARG INSTALL_FILES=https://nextcloud.fithwum.tech/index.php/s/35GF6g2ro97Etne/download +ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/foundryvtt/master/files/Install_Script.sh ENV PUID=99 ENV GUID=100 -ENV FVTT_VERSION=0.6.2 +# ENV FVTT_VERSION=0.6.2 RUN addgroup -S 100 \ && adduser -S -u 99 -D foundry -G 100 # Install dependencies and folder creation RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm \ - && mkdir -p /foundry /ftemp /ftemp/fvtt /foundry/fvtt /foundry/data \ + && mkdir -p /foundry /ftemp \ && chmod 777 -R /foundry \ && chown 99:100 -R /foundry -# ADD "${INSTALL_FILES}" /ftemp -RUN wget --no-cache "${INSTALL_FILES}" -O /ftemp/foundryvtt-${F_VTT_VERSION}.zip \ - && mkdir -p /foundry/fvtt /foundry/data \ - && unzip /ftemp/foundryvtt-${F_VTT_VERSION}.zip /foundry/fvtt \ - && chmod 777 -R /foundry \ - && chown 99:100 -R /foundry +ADD "${INSTALL_SCRIPT}" /ftemp +RUN chmod +x /ftemp/Install_Script.sh USER foundry @@ -33,4 +29,4 @@ VOLUME /foundry EXPOSE 30000 # Run command -CMD [ "node", "/foundry/fvtt/resources/app/main.js", "--headless", "--dataPath=/foundry/data" ] +CMD [ "/bin/sh", "/ftemp/Install_Script.sh" ]