initial working build
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user