Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyterhub-ai
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-ai
Commits
ae89371b
Commit
ae89371b
authored
4 months ago
by
Michael Bücker
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
6024e844
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#213311
failed
4 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+24
-10
24 additions, 10 deletions
Dockerfile
with
24 additions
and
10 deletions
Dockerfile
+
24
−
10
View file @
ae89371b
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/
# Update conda environment, install pip packages, and adjust permissions
RUN
conda
env
update
-q
-f
/tmp/environment.yml
&&
\
/opt/conda/bin/pip
install
-r
/tmp/requirements.txt
&&
\
/opt/conda/bin/pip
install
--no-cache-dir
-r
/tmp/requirements.txt
&&
\
conda clean
-y
--all
&&
\
conda
env export
-n
"root"
&&
\
jupyter lab build
jupyter lab build
&&
\
python
-m
nltk.downloader stopwords
&&
\
python
-m
nltk.downloader wordnet
&&
\
python
-m
spacy download en_core_web_sm
# 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
# Copy and install custom packages
COPY
dash_proxy /tmp/dash_proxy/
RUN
pip
install
/tmp/dash_proxy/
RUN
pip
install
--no-cache-dir
/tmp/dash_proxy/
COPY
llm_utils /llm_utils/
RUN
pip
install
/llm_utils/
RUN
pip
install
--no-cache-dir
/llm_utils/
# Set environment variable for config path
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 /dash/app/
RUN
chown
-R
jovyan
:users
/dash/app/
# install some 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
# Switch back to jovyan user
USER
jovyan
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment