Skip to content

Commit a689a2e

Browse files
authored
Create Dockerfile
1 parent d8af0fd commit a689a2e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Base Python image
2+
FROM python:3.11-slim
3+
4+
# Environment variables to reduce noise and improve performance
5+
ENV PYTHONDONTWRITEBYTECODE=1 \
6+
PYTHONUNBUFFERED=1 \
7+
PIP_NO_CACHE_DIR=1 \
8+
PIP_DISABLE_PIP_VERSION_CHECK=1
9+
10+
# Set working directory
11+
WORKDIR /app
12+
13+
# Copy only the requirements file to install dependencies
14+
COPY requirements.txt .
15+
16+
# Upgrade pip and install Python packages
17+
RUN pip install --upgrade pip \
18+
&& pip install -r requirements.txt

0 commit comments

Comments
 (0)