Files
foundryvtt/debian/Dockerfile
2023-01-28 06:20:55 -08:00

32 lines
798 B
Docker

FROM fithwum/debian-base:bullseye
LABEL maintainer "fithwum"
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/foundryvtt/master/debian/files/Install_Script.sh
ENV PUID=99
ENV GUID=100
ENV GAME_PORT=30000
RUN addgroup foundry && adduser -q --disabled-password --ingroup foundry foundry
# Install dependencies and folder creation
RUN apt update && apt install ca-certificates libstdc++6 bash-completion tar nodejs npm \
&& mkdir -p /foundry /ftemp \
&& chmod 777 -R /foundry \
&& chown 99:100 -R /foundry
ADD "${INSTALL_SCRIPT}" /ftemp
RUN chmod +x /ftemp/Install_Script.sh \
&& chown 99:100 -R /ftemp/Install_Script.sh
# USER foundry
# directory where data is stored
VOLUME /foundry
# TCP Port
EXPOSE ${GAME_PORT}
# Run command
CMD [ "/bin/sh", "/ftemp/Install_Script.sh" ]