-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
37 lines (28 loc) · 939 Bytes
/
dockerfile
File metadata and controls
37 lines (28 loc) · 939 Bytes
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
37
# adjusted from https://github.com/ToluClassics/transformers_notebook/blob/main/Dockerfile
FROM jupyter/base-notebook
ENV HF_HOME=/home/jovyan/hf_home
# Add RUN statements to install packages as the $NB_USER defined in the base images.
# Add a "USER root" statement followed by RUN statements to install system packages using apt-get,
# change file permissions, etc.
# If you do switch to root, always be sure to add a "USER $NB_USER" command at the end of the
# file to ensure the image runs as a unprivileged user by default.
USER root
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir \
jupyter \
tensorflow-cpu \
torch \
torchvision \
torchaudio \
jax \
jaxlib \
optax
RUN python3 -m pip install --no-cache-dir \
transformers \
datasets\
nltk \
pytorch_lightning \
gradio \
sentencepiece \
seqeval
USER ${NB_UID}