-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 691 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (15 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Reproducible environment for prototorch_oneclass (SVQ-OCC).
# CPU image; for GPU use a matching nvidia/cuda + torch build instead.
FROM python:3.10-slim
# System deps occasionally needed by scientific wheels.
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install --no-cache-dir -e .
# Default: drop into a shell; run examples explicitly, e.g.
# docker run --rm -it <image> python examples/<script>.py
CMD ["python", "-c", "import prototorch_oneclass; print('prototorch_oneclass import OK')"]