This commit is contained in:
2023-01-29 10:17:17 -06:00
parent 2f58e0f734
commit de64e4e944

View File

@@ -26,12 +26,12 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf
# Permissions
RUN adduser --disabled-password --gecos '' supervisor && \
chmod -R 775 /var/* && \
chown -R supervisor /var/*
# RUN adduser --disabled-password --gecos '' supervisor && \
RUN chmod -R 775 /var/* && \
chown -R ubuntu:supervisor /var/*
# Entrypoint
USER supervisor
USER ubuntu:supervisor
# Start processes
CMD ["/usr/bin/supervisord"]