test-code-refactor #1

Merged
pikram merged 6 commits from test-code-refactor into main 2025-04-10 20:46:21 +00:00
2 changed files with 13 additions and 6 deletions
Showing only changes of commit ed8fcedba4 - Show all commits

View File

@ -1,5 +1,6 @@
FROM python:3.11.7-slim-bookworm FROM python:3.11.7-alpine
WORKDIR /app WORKDIR /app
COPY api . COPY api .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
CMD python3 app.py EXPOSE 80
CMD ["python3", "app.py"]

View File

@ -5,11 +5,17 @@ services:
depends_on: depends_on:
- db - db
build: . build: .
env_file: networks:
- api/.env - default
db: db:
container_name: db container_name: db
hostname: db hostname: db
image: mysql:latest image: mysql:latest
env_file: networks:
- db/.env - default
networks:
default:
name: todolist
driver: bridge