-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathgpu-docker.dockerfile
More file actions
40 lines (31 loc) · 959 Bytes
/
gpu-docker.dockerfile
File metadata and controls
40 lines (31 loc) · 959 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM nvidia/cuda:12.8.1-cudnn-devel-ubuntu24.04
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
git \
make \
wget \
vim \
build-essential \
openssh-client \
ca-certificates \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*
ARG USERNAME=ubuntu
USER $USERNAME
WORKDIR /home/$USERNAME
SHELL ["/bin/bash", "-c"]
RUN set -o pipefail \
&& wget -qO- https://astral.sh/uv/install.sh \
| sh
ENV PATH="/home/$USERNAME/.local/bin/:$PATH"
RUN uv self update
RUN uv python install 3.13
RUN uv venv --python=3.13 --no-project \
&& uv pip install torch --index-url https://download.pytorch.org/whl/cu128
COPY --chown=ubuntu:ubuntu pymusas ./pymusas
COPY --chown=ubuntu:ubuntu tests ./tests
COPY --chown=ubuntu:ubuntu pyproject.toml pyproject.toml
RUN touch README.md LICENSE
RUN uv pip install .[neural] --group dev
RUN uv pip install spacy[cuda12x]
ENTRYPOINT ["./tests/docker_gpu_run_script.sh"]