Initial 1.0 version, created alpine and node 20 based docker image for FoundryVTT and set up entrypoint script.
This commit is contained in:
+27
@@ -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"]
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
chown -R ${PUID}:${PGID} /foundry
|
||||||
|
exec su-exec ${PUID}:${PGID} node /foundry/resources/app/main.js --dataPath=/foundrydata
|
||||||
Reference in New Issue
Block a user