This commit is contained in:
Penguin Grape 2025-07-13 15:26:59 +03:00
commit df66965871
2 changed files with 14 additions and 0 deletions

6
3/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.9-slim
RUN pip install flask
COPY app.py .
EXPOSE 5000
ENTRYPOINT ["python"]
CMD ["app.py"]

8
3/app.py Normal file
View File

@ -0,0 +1,8 @@
# app.py
from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "Hello, Flask in Docker!"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)