added dev make file for ease in development.
Some checks failed
Gitea build & run. / docker (push) Failing after 3s

This commit is contained in:
WGAVermeer
2026-03-08 13:20:45 +01:00
parent c9eb6d52be
commit acc116a6c1
4 changed files with 16 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
FROM python:3.14-alpine FROM python:3.14-alpine
WORKDIR /app WORKDIR /src
COPY requirements.txt /app/ COPY requirements.txt /src/
COPY gunicorn.conf.py /app/ COPY gunicorn.conf.py /src/
COPY ./src/ /app/ COPY ./src/ /src/
RUN pip install --upgrade pip && \ RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt pip install --no-cache-dir -r requirements.txt

View File

@@ -1,3 +1,7 @@
prod:
docker compose down
docker compose -f compose.yaml up --build
dev: dev:
docker compose down docker compose down
docker compose up --build docker compose -f ./compose.yaml -f ./compose.dev.yaml up --build

6
compose.dev.yaml Normal file
View File

@@ -0,0 +1,6 @@
services:
web:
command: gunicorn -b 0.0.0.0:8000 website.wsgi:application
volumes:
- ./src:/src

View File

@@ -40,5 +40,6 @@ services:
profiles: profiles:
- test - test
volumes: volumes:
postgres_data: postgres_data: