-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 796 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 796 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
26
# CUDA-enabled base image for GPU support
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
ARG DEBIAN_FRONTEND=noninteractive
ARG COMMIT_SHA=master
# Install Python + minimal deps
RUN apt-get update && apt-get install -y \
python3-pip python3-dev git && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
# Install GPU-enabled PyTorch wheels
RUN pip3 install --no-cache-dir \
torch torchvision torchaudio \
--extra-index-url https://download.pytorch.org/whl/cu118
# Install SigProfilerExtractor from specific commit
RUN pip3 install --no-cache-dir \
'git+https://github.com/SigProfilerSuite/SigProfilerExtractor.git@'${COMMIT_SHA}
# Create a non-root user
RUN useradd -m -s /bin/bash spm_user
RUN chown -R spm_user:spm_user /usr/src/app
USER spm_user