mirror of
https://github.com/morten-olsen/mini-loader.git
synced 2026-02-08 01:36:26 +01:00
init
This commit is contained in:
12
docker/entrypoint.sh
Normal file
12
docker/entrypoint.sh
Normal 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"
|
||||
Reference in New Issue
Block a user