File size: 830 Bytes
6d5c79f | 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 27 28 29 | # Dev Dockerfile - CPU-only image for validating the full pipeline locally.
# Use this for laptop / non-GPU development before scaling to H100s.
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
TOKENIZERS_PARALLELISM=false
RUN set -eux; \
for i in 1 2 3; do \
apt-get update && \
apt-get install -y --no-install-recommends --fix-missing \
build-essential git curl ca-certificates && break || \
(echo "apt retry $i" && sleep 5); \
done; \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY requirements-dev.txt /workspace/requirements-dev.txt
RUN pip install --upgrade pip wheel setuptools \
&& pip install -r /workspace/requirements-dev.txt
COPY . /workspace/llm_project
ENV PYTHONPATH=/workspace/llm_project
CMD ["bash"]
|