mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-02 22:57:00 +00:00
fix: streamline nginx directory creation and ownership settings in Dockerfile and entrypoint script
This commit is contained in:
@@ -20,9 +20,7 @@ RUN apk add --no-cache nginx shadow \
|
||||
&& useradd -U -M -s /bin/sh abc \
|
||||
# Create required nginx directories and set permissions
|
||||
&& mkdir -p /var/log/nginx \
|
||||
&& mkdir -p /var/lib/nginx/body \
|
||||
&& chown -R abc:abc /var/log/nginx \
|
||||
&& chown -R abc:abc /var/lib/nginx
|
||||
&& mkdir -p /var/lib/nginx/body
|
||||
|
||||
# Django app
|
||||
COPY src ./
|
||||
|
||||
@@ -10,8 +10,10 @@ PGID=${PGID:-1000}
|
||||
groupmod -o -g "$PGID" abc
|
||||
usermod -o -u "$PUID" abc
|
||||
|
||||
chown -R abc:abc /yamtrack
|
||||
chown abc:abc /yamtrack
|
||||
chown -R abc:abc db
|
||||
chown -R abc:abc staticfiles
|
||||
chown -R abc:abc /var/log/nginx
|
||||
chown -R abc:abc /var/lib/nginx
|
||||
|
||||
exec /usr/local/bin/supervisord -c /etc/supervisord.conf
|
||||
Reference in New Issue
Block a user