initial working build

This commit is contained in:
2024-12-02 11:30:20 -05:00
parent a85ca31b65
commit 03e91c5905
3 changed files with 261 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Caddy recommended way to build the custom image
FROM registry.belway.me/belwayhome/almalinux9-minimal:latest
ARG foundry_url
ARG nodejs_version
ENV foundry_url $foundry_url
ENV nodejs_version $nodejs_version
# Because pipeline is rootless
VOLUME /var/lib/containers
VOLUME /home/podman/.local/share/containers
RUN microdnf update \
&& microdnf -y install \
openssl-devel \
tar \
unzip \
wget \
&& rm -rf /var/cache/yum
RUN curl --silent --location https://rpm.nodesource.com/setup_${nodejs_version}.x | bash - \
&& microdnf -y install \
nodejs \
&& rm -rf /var/cache/yum
WORKDIR /foundryvtt/foundryvtt
RUN wget -O foundryvtt.zip ${foundry_url} && unzip foundryvtt.zip && rm foundryvtt.zip
WORKDIR /foundryvtt
VOLUME /foundryvtt/foundrydata
EXPOSE 30000
ENTRYPOINT /usr/bin/node /foundryvtt/foundryvtt/resources/app/main.js --dataPath=/foundryvtt/foundrydata