commit 9d249b0da34108dad04f63ecd84192fd58bdd156 Author: Sebastian Hugentobler Date: Wed Jan 29 18:52:31 2025 +0100 initial commit diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..70ae945 --- /dev/null +++ b/Containerfile @@ -0,0 +1,26 @@ +FROM docker.io/alpine:3.21 AS builder + +ARG VTT_URL="" +ENV SHA256_SUM=1f82297e5124c2c99e0c039d5562db861e22dc5ef385361d3993c54f7e07f278 + +RUN wget -O vtt.zip "$VTT_URL" +RUN echo "$SHA256_SUM vtt.zip" | sha256sum -c - || exit 1 +RUN unzip vtt.zip -d /vtt + + +FROM docker.io/alpine:3.21 + +RUN adduser -D -u 2222 vtt +RUN mkdir /data && chown -R vtt:vtt /data + +RUN apk --no-cache add \ + nodejs + +COPY --from=builder /vtt/resources/app /app + +USER vtt + +ENTRYPOINT ["/usr/bin/node", "/app/main.js", "--dataPath=/data"] + +VOLUME ["/data"] +EXPOSE 30000 diff --git a/README.md b/README.md new file mode 100644 index 0000000..a82be5b --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# Foundry Virtual Tabletop + +[Foundry Virtual Tabletop](https://foundryvtt.com/) is a self-hosted roleplaying +platform. + +When building the image, provide the temporary _timed url_ to download the +foundry-vtt software in the arg _VTT_URL_. + +In order for the license to stay valid, the hostname of the container must not +change. + +# Volumes + +- `/data` + +# Ports + +- 30000