commit 559e0c34ff6d4496901f2a5b1ef85384f0673d63 Author: Kienan Stewart Date: Wed Sep 22 17:39:24 2021 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/ diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..4d167c2 --- /dev/null +++ b/Containerfile @@ -0,0 +1,18 @@ +FROM docker.io/library/debian:stable-slim +# We need nodejs 14.x, so from experiment +RUN echo 'deb http://deb.debian.org/debian experimental main contrib' > /etc/apt/sources.list.d/sid.list +RUN echo "Package: *\nPin-Priority: 400\nPin: release a=experimental\n" > /etc/apt/preferences.d/sid.pref +RUN echo "Package: nodejs\nPin-Priority: 500\nPin: release a=experimental\n" > /etc/apt/preferences.d/nodejs_from_sid.pref +RUN apt-get update +RUN apt-get install -y libssl-dev wget unzip +RUN apt-get install -y -t experimental nodejs +RUN useradd --system foundry --home-dir /var/lib/foundry +RUN mkdir -p /var/lib/foundry/vtt +RUN mkdir -p /var/lib/foundry/data +WORKDIR /var/lib/foundry/vtt +COPY foundryvtt.zip /root/foundryvtt.zip +RUN unzip /root/foundryvtt.zip +RUN rm /root/foundryvtt.zip +RUN chown -R foundry: /var/lib/foundry +USER foundry +CMD nodejs resources/app/main.js --dataPath=/var/lib/foundry/data diff --git a/README.md b/README.md new file mode 100644 index 0000000..0285009 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Building + +`podman -t foundry build .` + +# First run: + +`podman run --name foundry -v $(pwd)/data:/var/lib/foundry/data:Z,U -dt -p 30000:30000 foundry` diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..e69de29