-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляет docker-контейнер для бэкенда
- Loading branch information
1 parent
742b7aa
commit 2c10bea
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM python:3.11.4-slim-bullseye | ||
|
||
WORKDIR /fastapi_app/backend | ||
|
||
COPY ./backend/requirements.txt /fastapi_app/backend | ||
|
||
RUN pip install --no-cache-dir --upgrade pip | ||
|
||
RUN pip install --no-cache-dir -r /fastapi_app/backend/requirements.txt | ||
|
||
COPY ./backend /fastapi_app/backend | ||
|
||
RUN chmod a+x ./*.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
alembic upgrade head | ||
cd src || exit | ||
gunicorn main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:"$BACK_APP_PORT" --timeout 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters