feat: improved configuration (#31)

This commit is contained in:
Morten Olsen
2024-01-14 12:49:54 +01:00
committed by GitHub
parent 2109bc3af9
commit 7436b3439c
14 changed files with 42 additions and 28 deletions

View File

@@ -7,6 +7,8 @@ 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
mkdir -p ${DATA_DIR}
mkdir -p ${CACHE_DIR}
chown -R miniloader:nodejs ${DATA_DIR}
chown -R miniloader:nodejs ${CACHE_DIR}
su miniloader -s /bin/sh -c "$CMD"