diff --git a/.dockerignore b/.dockerignore index 3fcb823..5630ca2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,3 @@ __pycache__/ venv/ -docker-secret/ \ No newline at end of file +docker-secret/ diff --git a/.gitignore b/.gitignore index 3fcb823..5630ca2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ __pycache__/ venv/ -docker-secret/ \ No newline at end of file +docker-secret/ diff --git a/Dockerfile b/Dockerfile index 013d080..8cb4add 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/app.py b/app.py index 3e2a332..e69c7da 100644 --- a/app.py +++ b/app.py @@ -6,3 +6,5 @@ app = Flask(__name__) def index(): return "Hello world!!" +if __name__ == "__main__": + app.run(host="0.0.0.0", port=5000)