FROM alpine:latest MAINTAINER fithwum ENV UID=99 ENV GUID=100 RUN useradd -ms /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 /foundry/fvtt /foundry/data \ && chmod 777 -R /foundry \ && chown 99:100 -R /foundry USER foundry # directory where data is stored VOLUME /foundry # TCP Port EXPOSE 30000 # Run command CMD [ "node", "fvtt/resources/app/main.js", "--headless", "--dataPath=/foundry/data" ]