Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyterhub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Bücker
jupyterhub
Merge requests
!4
Revert "Update .gitlab-ci.yml"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Revert "Update .gitlab-ci.yml"
buecker/jupyterhub-ai:revert-946169df
into
main
Overview
0
Commits
40
Pipelines
1
Changes
2
Closed
Michael Bücker
requested to merge
buecker/jupyterhub-ai:revert-946169df
into
main
5 months ago
Overview
0
Commits
40
Pipelines
1
Changes
2
Expand
This reverts commit 946169df1490bd4090a91658b726e389a0f096cd
0
0
Merge request reports
Viewing commit
918e72da
Prev
Next
Show latest version
2 files
+
17
−
36
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
918e72da
pinned to correct versions
· 918e72da
Julian Rasch
authored
5 months ago
Dockerfile
+
13
−
34
Options
FROM
jupyter/datascience-notebook:hub-3.1.1
# Use root to install packages and modify permissions
USER
root
# Copy requirements and environment files to the container
COPY
requirements.txt environment.yml /tmp/
RUN
conda
env
update
-q
-f
/tmp/environment.yml
&&
\
/opt/conda/bin/pip
install
-r
/tmp/requirements.txt
&&
\
conda clean
-y
--all
&&
\
conda
env export
-n
"root"
&&
\
jupyter lab build
# Update conda environment
RUN
conda
env
update
-q
-f
/tmp/environment.yml
# Install pip packages and avoid caching
RUN
/opt/conda/bin/pip
install
--no-cache-dir
-r
/tmp/requirements.txt
# Fix permissions for the pip cache directory to avoid permission warnings
RUN
chown
-R
jovyan:users /home/jovyan/.cache
# Ensure numpy and scikit-learn are compatible
RUN
/opt/conda/bin/pip
install
--no-cache-dir
numpy
==
1.22.0 scikit-learn
==
1.2.2
# Clean up conda cache
RUN
conda clean
-y
--all
# Build Jupyter Lab
RUN
jupyter lab build
# Install NLTK and SpaCy data
RUN
python
-m
nltk.downloader stopwords
RUN
python
-m
nltk.downloader wordnet
RUN
python
-m
spacy download en_core_web_sm
# Copy and install custom packages
COPY
dash_proxy /tmp/dash_proxy/
RUN
pip
install
--no-cache-dir
/tmp/dash_proxy/
RUN
pip
install
/tmp/dash_proxy/
COPY
llm_utils /llm_utils/
RUN
pip
install
--no-cache-dir
/llm_utils/
# Set environment variable for config path
RUN
pip
install
/llm_utils/
ENV
CONFIG_PATH=/home/jovyan/config.txt
# Copy application files and adjust permissions for the jovyan user
COPY
app /dash/app/
RUN
chown
-R
jovyan
:users
/dash/app/
RUN
chown
-R
jovyan /dash/app/
# Switch back to jovyan user
USER
jovyan
# install some NLTK and spaCy data
RUN
python
-m
nltk.downloader stopwords
RUN
python
-m
nltk.downloader wordnet
RUN
python
-m
nltk.downloader punkt
RUN
python
-m
spacy download en_core_web_sm
Loading