-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
31 lines (22 loc) · 1014 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
FROM continuumio/miniconda3:4.12.0
WORKDIR /skypilot-tutorial
ADD ./requirements.txt /skypilot-tutorial/requirements.txt
# Install tutorial dependencies
RUN pip install -r requirements.txt
# Install SkyPilot + dependencies
RUN conda install -c conda-forge google-cloud-sdk && \
apt update -y && \
apt install rsync nano -y && \
pip install skypilot[aws,gcp] && \
rm -rf /var/lib/apt/lists/*
# Copy credentials.
# UPDATE - no longer required. Instead mount the .aws and .config dirs to /credentials and it will be copied over.
# COPY src/.aws /root/.aws
# COPY src/.config/gcloud /root/.config/gcloud
# Exclude usage logging message
RUN mkdir -p /root/.sky && touch /root/.sky/privacy_policy
# Add files which may change frequently
COPY . /skypilot-tutorial
# Set bash as default shell
ENV SHELL /bin/bash
CMD ["/bin/bash", "-c", "cp -a /credentials/. /root/;sky show-gpus;jupyter lab --no-browser --ip '*' --allow-root --notebook-dir=/skypilot-tutorial --NotebookApp.token='SkyCamp2022'"]