This commit is contained in:
8
docker/docker-compose.yaml
Normal file
8
docker/docker-compose.yaml
Normal 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
7
docker/dockerfile
Normal 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
3
docker/start.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
alembic -c server/backend/database/alembic/alembic.ini upgrade head
|
||||
exec python run.py
|
||||
Reference in New Issue
Block a user