Use Alpine linux for smaller image

This commit is contained in:
2020-09-23 02:57:50 +08:00
parent 0640442953
commit 2608ff4ed1
3 changed files with 11 additions and 13 deletions

View File

@@ -9,7 +9,8 @@ mkdir -p cache/botanjs
case "$RUN_MODE" in
"web")
./botan-rebuild.py
./env/bin/uwsgi \
uwsgi \
--plugins-dir /usr/lib/uwsgi/ --need-plugin python \
--http-socket :5000 \
--wsgi-file main.py \
--callable application --master \
@@ -18,10 +19,10 @@ case "$RUN_MODE" in
"tasks")
source "$INST_DIR/celery.conf"
"$BIN_ROOT/celery" worker -n worker1@%h \
celery worker -n worker1@%h \
-A ${CELERY_APP} \
--loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS} \
& "$BIN_ROOT/celery" worker -n worker1@%h \
& celery worker -n worker1@%h \
-A ${CELERY_APP} \
--loglevel=${CELERYD_LOG_LEVEL} ${CELERYD_OPTS}
;;