forked from nikopueringer/CorridorKey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.runpod
More file actions
23 lines (13 loc) · 866 Bytes
/
Dockerfile.runpod
File metadata and controls
23 lines (13 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ghcr.io/astral-sh/uv:0.7-python3.11-bookworm-slim
RUN useradd --create-home --uid 1000 appuser
RUN mkdir /app && chown appuser:appuser /app
WORKDIR /app
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked apt-get update && apt-get install -y --no-install-recommends ffmpeg git libgl1 libglib2.0-0 && apt-get clean && rm -rf /var/lib/apt/lists/*
USER appuser
COPY --chown=appuser:appuser pyproject.toml uv.lock ./
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev --no-install-project --extra cuda
COPY --chown=appuser:appuser . .
RUN --mount=type=cache,target=/root/.cache/uv uv sync --frozen --no-dev --extra cuda
RUN --mount=type=cache,target=/root/.cache/uv uv pip install --python /app/.venv runpod google-api-python-client google-auth
ENV OPENCV_IO_ENABLE_OPENEXR=1
CMD ["/app/.venv/bin/python", "-u", "handler.py"]