use python alpine base image

This commit is contained in:
2022-07-13 21:15:38 +02:00
parent aa32494ce6
commit f79698bd55
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.10
FROM python:3.10-alpine
ENV PYTHONUNBUFFERED=1
WORKDIR /code/
COPY requirements.txt .

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
set -e
if [ "$DJANGO_PRODUCTION_MODE" == "true" ]; then
if [ "$DJANGO_PRODUCTION_MODE" = "true" ]; then
echo "starting production server ..."
gunicorn --bind=0.0.0.0:8000 --workers=2 gaehsnitzproject.wsgi