Initial commit

This commit is contained in:
Javier Feliz 2025-08-06 16:15:22 -04:00
commit 7e817da01f
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/*

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM node:24.5.0-alpine
RUN apk update && apk add --no-cache \
curl \
unzip \
&& rm -rf /var/cache/apk/*
RUN mkdir -p /foundry /data
WORKDIR /foundry
COPY ./build/foundry /foundry/
EXPOSE 30000
VOLUME [ "/data" ]
VOLUME [ "/foundry" ]
CMD ["/foundry/main.mjs", "--port=30000", "--headless", "--noupdate", "--dataPath=/data"]

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
FOUNDRY_VERSION := $(shell jq -r '.version' ./build/foundry/package.json)
prep-foundry:
mkdir -p ./build/foundry
unzip ./build/foundry.zip -d ./build/foundry
docker-build:
docker build -t foundryvtt:$(FOUNDRY_VERSION) .
run:
docker run -p 30000:30000 foundryvtt:$(FOUNDRY_VERSION)
build-run: docker-build run

0
scripts/entrypoint.sh Normal file
View File