-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
30 lines (21 loc) · 1006 Bytes
/
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
FROM pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime
WORKDIR /tmp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y --no-install-recommends build-essential git zsh curl vim less locales && \
locale-gen ko_KR.UTF-8 && \
rm -rf /var/lib/apt/lists/* && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
chsh -s $(which zsh) && \
conda init zsh
ENV LC_ALL=ko_KR.UTF-8
ENV TZ=Asia/Seoul
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
git clone https://github.com/djui/alias-tips.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/alias-tips && \
perl -pi -e 's/plugins\=\(git\)/plugins\=\(git zsh-syntax-highlighting alias-tips\)/g' ~/.zshrc
COPY requirements.txt requirements.txt
RUN pip install --ignore-installed -r requirements.txt --no-cache-dir
RUN conda clean -a -y -f
WORKDIR /workspace