Files
foundryvtt/Dockerfile
2020-06-21 19:56:53 -07:00

25 lines
571 B
Docker

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