From 651643982b918fb5e85d236f6346682b07eef5af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 22 Sep 2024 18:25:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20plain=20base=20official=20?= =?UTF-8?q?Python=20Docker=20image=20(#1351)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 2 +- backend/README.md | 2 +- backend/scripts/prestart.sh | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 29331dc712..bb67c32a81 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,4 @@ -FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10 +FROM python:3.10 WORKDIR /app/ diff --git a/backend/README.md b/backend/README.md index b7a77bd48d..a8f18e9e5a 100644 --- a/backend/README.md +++ b/backend/README.md @@ -155,7 +155,7 @@ If you don't want to use migrations at all, uncomment the lines in the file at ` SQLModel.metadata.create_all(engine) ``` -and comment the line in the file `prestart.sh` that contains: +and comment the line in the file `scripts/prestart.sh` that contains: ```console $ alembic upgrade head diff --git a/backend/scripts/prestart.sh b/backend/scripts/prestart.sh index ee1f5e252f..1b395d513f 100644 --- a/backend/scripts/prestart.sh +++ b/backend/scripts/prestart.sh @@ -1,5 +1,8 @@ #! /usr/bin/env bash +set -e +set -x + # Let the DB start python app/backend_pre_start.py