Files
foundryvtt/alpine/Dockerfile
fithwum 0f14ab936d
All checks were successful
Build and Push foundryvtt Docker Image / build (push) Successful in 24s
update label
2025-07-04 15:12:41 -07:00

31 lines
821 B
Docker

FROM alpine:latest
LABEL maintainer="fithwum"
ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/foundryvtt/raw/branch/master/alpine/files/Install_Script.sh
ENV PUID=99
ENV GUID=100
ENV GAME_PORT=30000
# USER foundry
RUN adduser -D -u 99 -G users -h /foundry -s /bin/bash foundry
# 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 \
&& chmod 777 -R /foundry \
&& chown 99:100 -R /foundry
RUN wget --no-cache "${INSTALL_SCRIPT}" -O /ftemp/Install_Script.sh \
&& chmod +x /ftemp/Install_Script.sh \
&& chown 99:100 -R /ftemp/Install_Script.sh
# directory where data is stored
VOLUME /foundry
# TCP Port
EXPOSE ${GAME_PORT}
# Run command
CMD [ "/bin/sh", "/ftemp/Install_Script.sh" ]