Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -5
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
FROM ghcr.io/tilmto/hymba:v1
|
2 |
ARG DEBIAN_FRONTEND=noninteractive
|
3 |
ENV PYTHONUNBUFFERED=1
|
4 |
-
|
5 |
-
# RUN groupadd -g 1000 user && \
|
6 |
-
# useradd -u 1000 -g user -m user
|
7 |
-
# RUN cat /etc/passwd
|
8 |
# USER user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
ENV HOME=/home/user \
|
10 |
PATH=/home/user/.local/bin:$PATH \
|
11 |
PYTHONPATH=$HOME/app \
|
@@ -15,10 +22,12 @@ ENV HOME=/home/user \
|
|
15 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
16 |
GRADIO_THEME=huggingface \
|
17 |
SYSTEM=spaces
|
|
|
|
|
18 |
RUN echo "Will install packages"
|
19 |
RUN pip3 install --no-cache-dir --progress-bar off --upgrade gradio
|
20 |
RUN pip3 install --no-cache-dir --progress-bar off --upgrade triton
|
21 |
-
|
22 |
COPY . $HOME/app
|
23 |
|
24 |
EXPOSE 7860
|
|
|
1 |
FROM ghcr.io/tilmto/hymba:v1
|
2 |
ARG DEBIAN_FRONTEND=noninteractive
|
3 |
ENV PYTHONUNBUFFERED=1
|
4 |
+
|
|
|
|
|
|
|
5 |
# USER user
|
6 |
+
# Set up a new user named "user" with user ID 1000
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
|
9 |
+
# Switch to the "user" user
|
10 |
+
USER user
|
11 |
+
|
12 |
+
WORKDIR $HOME/app
|
13 |
+
RUN pip3 install --no-cache-dir --upgrade pip
|
14 |
+
COPY --chown=user . $HOME/app
|
15 |
+
|
16 |
ENV HOME=/home/user \
|
17 |
PATH=/home/user/.local/bin:$PATH \
|
18 |
PYTHONPATH=$HOME/app \
|
|
|
22 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
23 |
GRADIO_THEME=huggingface \
|
24 |
SYSTEM=spaces
|
25 |
+
|
26 |
+
|
27 |
RUN echo "Will install packages"
|
28 |
RUN pip3 install --no-cache-dir --progress-bar off --upgrade gradio
|
29 |
RUN pip3 install --no-cache-dir --progress-bar off --upgrade triton
|
30 |
+
|
31 |
COPY . $HOME/app
|
32 |
|
33 |
EXPOSE 7860
|