Skip to content

Commit 2f215da

Browse files
committed
push
1 parent 228dbcc commit 2f215da

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Use the official Python image from the Docker Hub
2+
FROM python:3.10-slim
3+
4+
# Set the working directory
5+
WORKDIR /app
6+
7+
# Copy the requirements file
8+
COPY requirements.txt .
9+
10+
# Install any dependencies
11+
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
Binary file not shown.

0 commit comments

Comments
 (0)