1
0
foundryvtt_container/Containerfile

35 lines
924 B
Docker

# 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