Files
foundryvtt/Dockerfile
2020-06-21 20:56:52 -07:00

23 lines
637 B
Docker

FROM alpine:latest
MAINTAINER fithwum
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/foundryvtt/master/files/Install_Script.sh
ENV UID=99
ENV GUID=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 /foundry/fvtt /foundry/data \
&& chmod 777 -R /foundry \
&& chown 99:100 -R /foundry
# directory where data is stored
VOLUME /foundry
# TCP Port
EXPOSE 30000
# Run command
CMD [ "/ftemp/Install_Script.sh" , "node", "fvtt/resources/app/main.js", "--headless", "--dataPath=/foundry/data" ]