Commit
•
73f0e10
1
Parent(s):
abd9e52
Moving notebooks to ~/app/notebooks
Browse files- Dockerfile +2 -0
- jupyterlab/on_startup.sh +14 -2
Dockerfile
CHANGED
@@ -55,6 +55,8 @@ WORKDIR $HOME/app
|
|
55 |
|
56 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
57 |
COPY --chown=user ./jupyterlab/ $HOME/app
|
|
|
|
|
58 |
|
59 |
#######################################
|
60 |
# Start root user section
|
|
|
55 |
|
56 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
57 |
COPY --chown=user ./jupyterlab/ $HOME/app
|
58 |
+
RUN mkdir -p $HOME/app/notebooks && \
|
59 |
+
chown user:user $HOME/app/notebooks
|
60 |
|
61 |
#######################################
|
62 |
# Start root user section
|
jupyterlab/on_startup.sh
CHANGED
@@ -4,5 +4,17 @@
|
|
4 |
# git clone https://github.com/huggingface/transformers.git
|
5 |
# cd transformers && pip install -e ".[dev]"
|
6 |
git config --global credential.helper store
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# git clone https://github.com/huggingface/transformers.git
|
5 |
# cd transformers && pip install -e ".[dev]"
|
6 |
git config --global credential.helper store
|
7 |
+
|
8 |
+
# Create the target directory if it doesn't already exist
|
9 |
+
mkdir -p $HOME/app/notebooks
|
10 |
+
|
11 |
+
# Clone the repository into a temporary directory
|
12 |
+
git clone https://huggingface.co/derek-thomas/tgi-benchmark-notebooks /tmp/tgi-benchmark-notebooks
|
13 |
+
|
14 |
+
# Move the contents to $HOME/app/notebooks
|
15 |
+
mv /tmp/tgi-benchmark-notebooks/* $HOME/app/notebooks
|
16 |
+
|
17 |
+
# Remove the temporary clone directory
|
18 |
+
rm -rf /tmp/tgi-benchmark-notebooks
|
19 |
+
|
20 |
+
echo "All right on the HF site"
|