-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathDockerfile.dev
More file actions
25 lines (18 loc) · 837 Bytes
/
Dockerfile.dev
File metadata and controls
25 lines (18 loc) · 837 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
FROM python:3.10
RUN apt-get update && apt-get install -y make curl libgl1-mesa-glx ca-certificates && rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:${PATH}"
WORKDIR /roboflow-python
COPY .devcontainer/bashrc_ext /root/bashrc_ext
RUN echo "source /root/bashrc_ext" >> ~/.bashrc
# Trust any custom CAs provided in build context (e.g., mkcert)
COPY .devcontainer/certs/ /usr/local/share/ca-certificates/
RUN update-ca-certificates || true
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
COPY ./requirements.txt ./
RUN uv pip install --system -r requirements.txt
COPY ./setup.py ./pyproject.toml ./README.md ./
COPY roboflow/__init__.py ./roboflow/__init__.py
RUN uv pip install --system -e ".[dev]"
COPY . .