-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 1.03 KB
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
FROM pytorch/pytorch:2.2.0-cuda11.8-cudnn8-devel
RUN apt-get update \
&& apt-get install -y \
apt-transport-https \
libtcmalloc-minimal4 \
libomp-dev \
sox \
git \
gcc \
g++ \
python3-dev \
ffmpeg \
libsm6 \
libxext6 \
&& apt-get clean
RUN ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime \
&& echo "Etc/UTC" > /etc/timezone \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install texlive-latex-base texlive-latex-extra texlive-fonts-recommended xzdec dvipng cm-super -y \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y libglib2.0-0 libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
WORKDIR /workspace
RUN mkdir /assets
COPY requirements.txt /assets/requirements.txt
RUN pip install -r /assets/requirements.txt --upgrade --no-cache-dir
COPY . /workspace/
RUN git config --global --add safe.directory '*'
ENV TOKENIZERS_PARALLELISM false
ENV PYTHONPATH "$PYTHONPATH:./"