Files
foundryvtt/Dockerfile
2020-06-22 05:33:15 -07:00

26 lines
591 B
Docker

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