frost-rolf
commited on
Commit
•
580eeb3
1
Parent(s):
224adc3
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
@@ -37,6 +37,7 @@ RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - && \
|
|
37 |
WORKDIR /app
|
38 |
|
39 |
# Create a non-root user and switch to it
|
|
|
40 |
RUN adduser --gid 1000 --uid 1000 --disabled-password --gecos '' --shell /bin/bash user \
|
41 |
&& chown -R user:user /app
|
42 |
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
|
@@ -55,10 +56,6 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
|
|
55 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
56 |
&& rm ~/miniconda.sh \
|
57 |
&& conda clean -ya
|
58 |
-
|
59 |
-
# Install JupyterLab and Python dependencies
|
60 |
-
RUN pip install --upgrade pip && \
|
61 |
-
pip install jupyterlab transformers datasets accelerate bitsandbytes torch
|
62 |
|
63 |
WORKDIR $HOME/app
|
64 |
|
|
|
37 |
WORKDIR /app
|
38 |
|
39 |
# Create a non-root user and switch to it
|
40 |
+
RUN addgroup --gid 1000 user
|
41 |
RUN adduser --gid 1000 --uid 1000 --disabled-password --gecos '' --shell /bin/bash user \
|
42 |
&& chown -R user:user /app
|
43 |
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
|
|
|
56 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
57 |
&& rm ~/miniconda.sh \
|
58 |
&& conda clean -ya
|
|
|
|
|
|
|
|
|
59 |
|
60 |
WORKDIR $HOME/app
|
61 |
|