-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 697 Bytes
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 697 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
FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtime
WORKDIR /tmp
RUN apt-get -y update
RUN apt-get install --no-install-recommends -y bash \
build-essential \
zip \
git \
curl \
wget \
ca-certificates \
gcc \
libpq-dev \
ffmpeg \
libxext6\
libsm6
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists
RUN chmod 1777 /tmp
RUN rm -rf /tmp
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV PYTHONPATH=$PYTHONPATH:/app
WORKDIR /app
COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir --upgrade pip
RUN pip install -r requirements.txt
RUN pip install -U pyopenssl cryptography