Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit c170cc5

Browse files
committed
Use exec to eliminate extra shell processes
1 parent c61eadf commit c170cc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ RUN cp --no-clobber /docker-registry/config/config_sample.yml /docker-registry/c
2525

2626
EXPOSE 5000
2727

28-
CMD cd /docker-registry && ./setup-configs.sh && ./run.sh
28+
CMD cd /docker-registry && ./setup-configs.sh && exec ./run.sh

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ GUNICORN_GRACEFUL_TIMEOUT=${GUNICORN_GRACEFUL_TIMEOUT:-3600}
66
GUNICORN_SILENT_TIMEOUT=${GUNICORN_SILENT_TIMEOUT:-3600}
77

88
cd "$(dirname $0)"
9-
gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout $GUNICORN_GRACEFUL_TIMEOUT -t $GUNICORN_SILENT_TIMEOUT -k gevent -b 0.0.0.0:$REGISTRY_PORT -w $GUNICORN_WORKERS wsgi:application
9+
exec gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout $GUNICORN_GRACEFUL_TIMEOUT -t $GUNICORN_SILENT_TIMEOUT -k gevent -b 0.0.0.0:$REGISTRY_PORT -w $GUNICORN_WORKERS wsgi:application

0 commit comments

Comments
 (0)