Skip to content

Commit b0f8f6c

Browse files
author
Leonardo Sarmiento
committed
add app dockerfile
1 parent 6cdc36d commit b0f8f6c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker-compose-lab/app/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# syntax=docker/dockerfile:1
2+
FROM ubuntu:22.04
3+
4+
# install app dependencies
5+
RUN apt-get update && apt-get install -y python3 python3-pip
6+
RUN pip install flask==3.0.*
7+
8+
# install app
9+
COPY app.py /
10+
11+
# final configuration
12+
ENV FLASK_APP=app
13+
EXPOSE 8000
14+
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "9000"]

0 commit comments

Comments
 (0)