first commit
Some checks failed
Build Docker / build (push) Has been cancelled

This commit is contained in:
2026-02-28 10:47:42 +03:00
commit a763e9c2e0
27 changed files with 556 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
services:
backend:
image: back:latest
container_name: gitea
volumes:
- ../server:/home/backend/server
ports:
- "${PORT}:${PORT}"

7
docker/dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.15.0a6-slim
WORKDIR /home/backend
COPY ../server /home/backend
RUN python -m pip install --upgrade pip \
&& python -m pip install -r requirements.txt
RUN chmod +x ./docker/start.sh
ENTRYPOINT ["./docker/start.sh"]

3
docker/start.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
alembic -c server/backend/database/alembic/alembic.ini upgrade head
exec python run.py