Files
foundryvtt-docker/Dockerfile
T
Crovaxon 7cc2051528
Build foundry vtt docker image and push to registry / docker (push) Successful in 2m27s
V13 main.js path compatibility + docker image enhancements.
Preparing environment for building different Foundry dockers using a build argument to choose which node base image is being applied. Not strictly required right now, but might be useful in the future.
2025-05-03 18:20:48 +02:00

31 lines
684 B
Docker

ARG NODE_IMAGE_VERSION=20-alpine
FROM node:${NODE_IMAGE_VERSION}
LABEL maintainer="crovaxon"
WORKDIR /app
# user and group id are typical defaults for UNRAID
ENV PUID=99
ENV PGID=100
ENV UMASK=022
ENV PATH="/app:${PATH}"
# update and install requirements
RUN apk update
RUN apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm
# copy entrypoint script to work directory
COPY entrypoint.sh ./
RUN chmod +x entrypoint.sh
# mount volume directory of the Foundry application
VOLUME /foundry
# mount volume directory of the Foundry user data
VOLUME /foundrydata
# expose default TCP port
EXPOSE 30000
#run entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]