-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
21 lines (15 loc) · 637 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM nvidia/cuda:11.0-base-ubuntu18.04
USER root
WORKDIR /home/app_user/app
RUN apt update && \
apt install -y curl && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
# Install prerequisities for Ansible
RUN apt-get update
RUN apt-get -y install python3 python3-nacl python3-pip libffi-dev ssh
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY src /home/app_user/app
CMD ["python3", "index.py"]