diff --git a/.gitea/docker.yml b/.gitea/docker.yml new file mode 100644 index 0000000..e69de29 diff --git a/DockerFile b/DockerFile new file mode 100644 index 0000000..b3f7498 --- /dev/null +++ b/DockerFile @@ -0,0 +1,14 @@ +FROM python:3.10-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +ENV FLASK_APP=app.py +ENV FLASK_RUN_HOST=0.0.0.0 +EXPOSE 5000 + +CMD ["flask", "run"] \ No newline at end of file diff --git a/run.py b/run.py index 5668dd8..b147fd1 100644 --- a/run.py +++ b/run.py @@ -5,4 +5,5 @@ app = create_app() migrate = Migrate(app, db) if __name__ == "__main__": - app.run(debug=True) + app.run(host="0.0.0.0", port=5000, debug=True) + diff --git a/venv/pyvenv.cfg b/venv/pyvenv.cfg index 3ac9338..5182ea8 100644 --- a/venv/pyvenv.cfg +++ b/venv/pyvenv.cfg @@ -1,3 +1,3 @@ -home = C:\Python37 +home = C:\Users\Lenovo\Desktop\stage 2025\flask\venv\Scripts include-system-site-packages = false version = 3.7.1