Browse Source

🔧 Use plain base official Python Docker image (#1351)

pull/13907/head
Sebastián Ramírez 11 months ago
committed by GitHub
parent
commit
651643982b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      backend/Dockerfile
  2. 2
      backend/README.md
  3. 3
      backend/scripts/prestart.sh

2
backend/Dockerfile

@ -1,4 +1,4 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
FROM python:3.10
WORKDIR /app/

2
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

3
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

Loading…
Cancel
Save