This commit is contained in:
Morten Olsen
2024-01-11 09:03:14 +01:00
commit 689fae8445
81 changed files with 6979 additions and 0 deletions

12
docker/entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
CMD=$@
UID=${UID:-1001}
GID=${GID:-1001}
addgroup --system --gid ${GID} nodejs && \
adduser --system --uid ${UID} -G nodejs miniloader && \
mkdir -p /app/data
chown -R miniloader:nodejs /app/data
su miniloader -s /bin/sh -c "$CMD"