11 lines
387 B
Docker
11 lines
387 B
Docker
# Use a full Python runtime image to ensure necessary build tools are available.
|
|
FROM python
|
|
|
|
# Set the working directory to organize application files.
|
|
WORKDIR /app
|
|
|
|
# Copy requirements file to allow pip to find dependencies during build.
|
|
COPY requirements.txt /app/
|
|
|
|
# Install Python dependencies for the application to run correctly.
|
|
RUN pip install --no-cache-dir -r requirements.txt |