added dev make file for ease in development.
Some checks failed
Gitea build & run. / docker (push) Failing after 3s
Some checks failed
Gitea build & run. / docker (push) Failing after 3s
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
FROM python:3.14-alpine
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /src
|
||||
|
||||
COPY requirements.txt /app/
|
||||
COPY gunicorn.conf.py /app/
|
||||
COPY ./src/ /app/
|
||||
COPY requirements.txt /src/
|
||||
COPY gunicorn.conf.py /src/
|
||||
COPY ./src/ /src/
|
||||
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
6
Makefile
6
Makefile
@@ -1,3 +1,7 @@
|
||||
prod:
|
||||
docker compose down
|
||||
docker compose -f compose.yaml up --build
|
||||
|
||||
dev:
|
||||
docker compose down
|
||||
docker compose up --build
|
||||
docker compose -f ./compose.yaml -f ./compose.dev.yaml up --build
|
||||
|
||||
6
compose.dev.yaml
Normal file
6
compose.dev.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
web:
|
||||
command: gunicorn -b 0.0.0.0:8000 website.wsgi:application
|
||||
volumes:
|
||||
- ./src:/src
|
||||
|
||||
@@ -40,5 +40,6 @@ services:
|
||||
profiles:
|
||||
- test
|
||||
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user