Skip to content

Commit 81fff96

Browse files
chore: 🔧 updating docker files
Signed-off-by: Prashant Shahi <me@prashantshahi.dev>
1 parent f327e67 commit 81fff96

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM python:3.9-alpine3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM python:3.10-alpine3.15
24

35
LABEL MAINTAINER "Prashant Shahi <me@prashantshahi.dev>"
46

@@ -15,6 +17,4 @@ RUN pip install --user -r requirements.txt
1517

1618
COPY --chown=appuser:appuser . .
1719

18-
ENTRYPOINT ["python"]
19-
20-
CMD ["app.py"]
20+
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]

docker-compose.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
version: "3.3"
1+
version: "3.8"
2+
23
services:
3-
flaskapp:
4+
todo-flaskapp:
45
image: coolboi567/todo-flaskapp:${DOCKER_TAG:-latest}
56
ports:
67
- 5000:5000
78
container_name: flask-app
89
environment:
9-
- APP_ENV=development
10+
- FLASK_ENV=development
1011
- PORT=5000
1112
- MONGO_HOST=mongo
1213
- MONGO_PORT=27017
13-
networks:
14-
- my-net
1514
depends_on:
1615
- mongo
1716
mongo:
1817
image: mvertes/alpine-mongo:latest
18+
volumes:
19+
- flaskapp:/data/db/
1920
ports:
2021
- 27017:27017
21-
networks:
22-
- my-net
2322

24-
networks:
25-
my-net:
26-
driver: bridge
23+
volumes:
24+
flaskapp:

0 commit comments

Comments
 (0)