forked from ENate/AI-model-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
36 lines (27 loc) · 1.09 KB
/
.gitpod.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
#Install Python Packages
COPY requirements.txt /tmp/
RUN pip3 install --requirement /tmp/requirements.txt
RUN cat /tmp/requirements.txt | sed -e '/^\s*#.*$/d' -e '/^\s*$/d' | xargs -n 1 pip3 install
# RUN mkdir -p /supervised/notebooks/
# Install Helm and Kubectl
## Install Kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x ./kubectl && \
sudo mv ./kubectl /usr/local/bin/kubectl && \
mkdir ~/.kube
## Install Helm
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && \
chmod 700 get_helm.sh && \
./get_helm.sh
#add jupyter
# WORKDIR /supervised/notebooks/
# few inits
RUN pip install --upgrade pip
RUN sudo apt-get install -y protobuf-compiler python-pil python-lxml
RUN pip install --no-cache-dir matplotlib pandas jupyter jupyterlab
# RUN protoc object_detection/protos/*.proto --python_out=.
EXPOSE 8888
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
# Install tensorflow probability
# RUN pip install jaxlib