Skip to content

Commit

Permalink
🔧 Use plain base official Python Docker image (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Sep 22, 2024
1 parent 224d0e3 commit 6516439
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
FROM python:3.10

WORKDIR /app/

Expand Down
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions backend/scripts/prestart.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#! /usr/bin/env bash

set -e
set -x

# Let the DB start
python app/backend_pre_start.py

Expand Down

0 comments on commit 6516439

Please sign in to comment.