Initial 1.0 version, created alpine and node 20 based docker image for FoundryVTT and set up entrypoint script.

This commit is contained in:
Crovaxon
2024-06-10 23:32:47 +02:00
commit 27d756acaf
2 changed files with 31 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM node:20-alpine
LABEL maintainer="crovaxon"
WORKDIR /app
ENV PUID=99
ENV PGID=100
ENV UMASK=022
ENV PATH="/app:${PATH}"
#RUN addgroup -g ${GUID} foundry
#RUN adduser -H -u ${PUID} -s /bin/bash foundry foundry
#USER foundry
RUN apk update & apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm
COPY entrypoint.sh ./
# directory of the Foundry application
VOLUME /foundry
#directory of the Foundry user data
VOLUME /foundrydata
# default TCP port
EXPOSE 30000
ENTRYPOINT ["/app/entrypoint.sh"]
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
chown -R ${PUID}:${PGID} /foundry
exec su-exec ${PUID}:${PGID} node /foundry/resources/app/main.js --dataPath=/foundrydata