Initial commit
This commit is contained in:
commit
7e817da01f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build/*
|
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
13
Makefile
Normal 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
0
scripts/entrypoint.sh
Normal file
Loading…
x
Reference in New Issue
Block a user