first commit
This commit is contained in:
parent
911bbda08f
commit
6acff67053
0
.gitea/docker.yml
Normal file
0
.gitea/docker.yml
Normal file
14
DockerFile
Normal file
14
DockerFile
Normal file
@ -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"]
|
||||||
3
run.py
3
run.py
@ -5,4 +5,5 @@ app = create_app()
|
|||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True)
|
app.run(host="0.0.0.0", port=5000, debug=True)
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
home = C:\Python37
|
home = C:\Users\Lenovo\Desktop\stage 2025\flask\venv\Scripts
|
||||||
include-system-site-packages = false
|
include-system-site-packages = false
|
||||||
version = 3.7.1
|
version = 3.7.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user