forked from ITMO-NSS-team/EPDE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 847 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (18 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# python:3.10-slim has glibc, just enough to install the wheels.
# numpy / scipy / sklearn / torch all ship manylinux wheels, so we
# don't need a build toolchain at runtime.
FROM python:3.10-slim
# libgomp1 is needed by numpy/sklearn/torch for OpenMP threading.
RUN apt-get update && apt-get install -y --no-install-recommends \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /work
# Install Python deps first so the layer caches across source edits.
COPY requirements.txt /work/requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy the repo last so source edits don't bust the dep cache.
COPY . /work
# Default to interactive shell; the actual sweep command is supplied
# by docker-compose via the per-service ``command:`` field.
ENTRYPOINT ["/bin/bash", "-l"]