initial commit
This commit is contained in:
commit
9d249b0da3
26
Containerfile
Normal file
26
Containerfile
Normal file
@ -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
|
18
README.md
Normal file
18
README.md
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user