-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (31 loc) · 1.05 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
# specify the Parent Image from which you are building
FROM nvidia/cuda:11.0-devel-ubuntu20.04
LABEL maintainer="cheeseNA"
# set as noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH="/root/.cargo/bin:$PATH"
ENV SHELL="/usr/bin/zsh"
ENV LC_CTYPE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
# install Python3
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key A4B469963BF863CC
RUN apt-get update && apt-get install -y python3.9 python3.9-venv
# install other packages
ENV PATH="/root/.cargo/bin:$PATH"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN rustup toolchain install nightly
RUN rustup default nightly
RUN cargo install git-delta exa
RUN apt-get install -y tree bat jq fasd zsh ffmpeg tldr tmux wget neovim
# install poetry
RUN curl -sSL https://install.python-poetry.org | python3.9 -
# locale settings
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
# copy files to the container (COPY <src> <dest>)
COPY ./deploy.sh /root/deploy.sh
# set the working directory
WORKDIR /root
# make workspace dir to mount
RUN mkdir /root/ws
CMD ["zsh"]