-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cuda
34 lines (26 loc) · 1.23 KB
/
Dockerfile.cuda
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
FROM 812206152185.dkr.ecr.us-west-2.amazonaws.com/lytectl:lytectl-8f17-master as lytectl
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
# Grab custom flytectl from builder image
COPY --from=lytectl /artifacts/flytectl /bin/flytectl
RUN /bin/flytectl --help
WORKDIR /root
ENV VENV /opt/venv
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV PYTHONPATH /root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y libsm6 libxext6 libxrender-dev build-essential procps rsync openssh-server
RUN apt-get install -y software-properties-common &&\
add-apt-repository -y ppa:deadsnakes/ppa &&\
apt-get install -y python3.9 python3-pip python3.9-distutils
RUN python3.9 -m pip install --upgrade pip
# Install the AWS cli separately to prevent issues with boto being written over
RUN python3.9 -m pip install awscli
RUN apt-get update && apt-get install -y curl
# s5 gives better file upload and download performance than awscli.
RUN curl -L https://github.com/peak/s5cmd/releases/download/v2.0.0/s5cmd_2.0.0_Linux-64bit.tar.gz -o s5cmd_2.0.0_Linux-64bit.tar.gz &&\
tar -xzvf s5cmd_2.0.0_Linux-64bit.tar.gz &&\
mv s5cmd /bin/ &&\
rm CHANGELOG.md LICENSE README.md
COPY in_container.mk /root/Makefile
COPY flytekit.config /root