-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (39 loc) · 1.25 KB
/
Dockerfile
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
41
42
43
44
45
46
FROM pytorch/pytorch:2.2.0-cuda11.8-cudnn8-devel
WORKDIR /tmp
# hadolint ignore=DL3008, DL3013
RUN apt-get update \
&& apt-get install --no-install-recommends -y bash \
build-essential \
git \
curl \
ca-certificates \
wget \
zsh \
gdebi-core \
vim \
libgl1 \
libglib2.0-0 -y \
less \
git-lfs \
poppler-utils \
tesseract-ocr \
fonts-freefont-ttf \
&& wget --progress=dot:giga https://github.com/quarto-dev/quarto-cli/releases/download/v1.5.17/quarto-1.5.17-linux-amd64.deb \
&& gdebi -n quarto-1.5.17-linux-amd64.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists \
&& rm -rf /tmp
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH=$PYTHONPATH:/app
RUN chmod 1777 /tmp \
&& sh -c "$(wget --progress=dot:giga -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
-t https://github.com/denysdovhan/spaceship-prompt \
-a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"' \
-a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"' \
-p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt