updates
This commit is contained in:
29
debian/Dockerfile
vendored
Normal file
29
debian/Dockerfile
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM fithwum/debian-base:bullseye
|
||||
|
||||
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/foundryvtt/master/debian/files/Install_Script.sh
|
||||
|
||||
ENV PUID=99
|
||||
ENV GUID=100
|
||||
|
||||
RUN addgroup foundry && adduser -q --disabled-password --ingroup foundry foundry
|
||||
|
||||
# Install dependencies and folder creation
|
||||
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm \
|
||||
&& mkdir -p /foundry /ftemp \
|
||||
&& chmod 777 -R /foundry \
|
||||
&& chown 99:100 -R /foundry
|
||||
|
||||
ADD "${INSTALL_SCRIPT}" /ftemp
|
||||
RUN chmod +x /ftemp/Install_Script.sh \
|
||||
&& chown 99:100 -R /ftemp/Install_Script.sh
|
||||
|
||||
# USER foundry
|
||||
|
||||
# directory where data is stored
|
||||
VOLUME /foundry
|
||||
|
||||
# TCP Port
|
||||
EXPOSE 30000
|
||||
|
||||
# Run command
|
||||
CMD [ "/bin/sh", "/ftemp/Install_Script.sh" ]
|
||||
25
debian/files/Install_Script.sh
vendored
Normal file
25
debian/files/Install_Script.sh
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2018 fithwum
|
||||
# All rights reserved
|
||||
|
||||
# Variables.
|
||||
FVTT_VERSION=V9_Stable
|
||||
|
||||
echo " "
|
||||
echo "Current FoundryVTT Release version is ${FVTT_VERSION}."
|
||||
|
||||
sleep 1
|
||||
|
||||
# Set permissions.
|
||||
mkdir -p /foundry/fvtt /foundry/data
|
||||
chown 99:100 -R /foundry
|
||||
chmod 776 -R /foundry
|
||||
chmod +x /foundry/
|
||||
|
||||
# Run.
|
||||
echo "INFO ! Starting FoundryVTT Server"
|
||||
echo " "
|
||||
# exec node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data
|
||||
su foundry -c 'node /foundry/fvtt/resources/app/main.js --dataPath=/foundry/data --ignore-gpu-blacklist'
|
||||
|
||||
exit
|
||||
Reference in New Issue
Block a user