From f79698bd55083c1b64470de0322d10b8b0c1fffc Mon Sep 17 00:00:00 2001 From: Flo Ha Date: Wed, 13 Jul 2022 21:15:38 +0200 Subject: [PATCH] use python alpine base image --- Dockerfile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d70bcc8..b86232b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10 +FROM python:3.10-alpine ENV PYTHONUNBUFFERED=1 WORKDIR /code/ COPY requirements.txt . diff --git a/entrypoint.sh b/entrypoint.sh index 7e955ac..aee4d41 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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