We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228dbcc commit 2f215daCopy full SHA for 2f215da
.dockerignore
@@ -0,0 +1,11 @@
1
+__pycache__
2
+*.pyc
3
+*.pyo
4
+*.pyd
5
+*.db
6
+*.sqlite3
7
+*.log
8
+.env
9
+venv
10
+instance
11
+.DS_Store
Dockerfile
@@ -0,0 +1,24 @@
+# Use the official Python image from the Docker Hub
+FROM python:3.10-slim
+
+# Set the working directory
+WORKDIR /app
+# Copy the requirements file
+COPY requirements.txt .
+# Install any dependencies
+RUN pip install --no-cache-dir -r requirements.txt
12
13
+# Copy the rest of the application code
14
+COPY . .
15
16
+# Set environment variables
17
+ENV FLASK_APP=app.py
18
+ENV FLASK_RUN_HOST=0.0.0.0
19
20
+# Expose the port the app runs on
21
+EXPOSE 5000
22
23
+# Run the Flask app
24
+CMD ["flask", "run"]
requirements.txt
16.4 KB
0 commit comments