Skip to content

Commit 542c810

Browse files
authored
Create Dockerfile
1 parent c987a38 commit 542c810

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use the official Python image from the Docker Hub
2+
FROM python:3.11-slim
3+
4+
# Set environment variables
5+
ENV PYTHONDONTWRITEBYTECODE=1
6+
ENV PYTHONUNBUFFERED=1
7+
8+
# Set working directory
9+
WORKDIR /app
10+
11+
# Install dependencies
12+
COPY requirements.txt .
13+
RUN pip install --upgrade pip \
14+
&& pip install -r requirements.txt
15+
16+
# Copy the rest of the application code
17+
COPY . .
18+
19+
# Default command to run the application (adjust as needed)
20+
CMD ["python", "main.py"]

0 commit comments

Comments
 (0)