-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11-slim
# Install basic build tools and system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Create working directory
WORKDIR /workspace
# Copy dependency lists first to leverage Docker layer caching
COPY requirements.txt /workspace/requirements.txt
# Install uv and use it to install Python dependencies system-wide
RUN pip install --no-cache-dir uv \
&& uv pip install --system -r /workspace/requirements.txt
# Copy the rest of the repository into the container
COPY . /workspace
# Ensure the package is importable
ENV PYTHONPATH=/workspace/src
# Set default command (allow overriding with `docker compose run ...`)
CMD ["bash"]