Changed base image for app container to alpine
This commit is contained in:
parent
084e3868f9
commit
ed8fcedba4
@ -1,5 +1,6 @@
|
||||
FROM python:3.11.7-slim-bookworm
|
||||
FROM python:3.11.7-alpine
|
||||
WORKDIR /app
|
||||
COPY api .
|
||||
RUN pip install -r requirements.txt
|
||||
CMD python3 app.py
|
||||
EXPOSE 80
|
||||
CMD ["python3", "app.py"]
|
||||
|
@ -5,11 +5,17 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
build: .
|
||||
env_file:
|
||||
- api/.env
|
||||
networks:
|
||||
- default
|
||||
|
||||
db:
|
||||
container_name: db
|
||||
hostname: db
|
||||
image: mysql:latest
|
||||
env_file:
|
||||
- db/.env
|
||||
networks:
|
||||
- default
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: todolist
|
||||
driver: bridge
|
||||
|
Loading…
x
Reference in New Issue
Block a user