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" ]