18 lines
353 B
Docker
18 lines
353 B
Docker
# Use Python 3.10 slim as base
|
|
FROM python:3.10-slim AS base
|
|
|
|
# Set a working directory
|
|
WORKDIR /app
|
|
|
|
# Copy only the requirements file first
|
|
COPY requirements.txt .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the rest of the application
|
|
COPY . .
|
|
|
|
# Final entrypoint
|
|
ENTRYPOINT ["python", "/app/block_wrapper.py"]
|