Code is now more in line with Klemen's

master
Luka 2022-11-14 11:59:05 +01:00
parent 227a14ef0a
commit 5835232298
4 changed files with 5 additions and 4 deletions

View File

@ -3,9 +3,8 @@ FROM python:3.8-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"]
CMD ["python3", "app.py"]

2
app.py
View File

@ -6,3 +6,5 @@ app = Flask(__name__)
def index():
return "Hello world!!"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)