-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (29 loc) · 948 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
31
32
33
34
35
36
FROM gitpod/workspace-full:latest
USER root
# Install util tools.
RUN apt-get update \
&& apt-get install -y \
apt-utils \
sudo \
git \
less \
wget
RUN mkdir -p /workspace/data \
&& chown -R gitpod:gitpod /workspace/data
RUN mkdir /home/gitpod/.conda
# Install conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc && \
/bin/bash /opt/conda/etc/profile.d/conda.sh init
RUN chown -R gitpod:gitpod /opt/conda \
&& chmod -R 777 /opt/conda \
&& chown -R gitpod:gitpod /home/gitpod/.conda \
&& chmod -R 777 /home/gitpod/.conda
# Give back control
USER root
# Cleaning
RUN apt-get clean