Spaces:
Sleeping
Sleeping
shivakerur99
commited on
Commit
•
d6ecdff
1
Parent(s):
b15a5d2
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -45,16 +45,15 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
45 |
# Create a non-root user
|
46 |
RUN useradd -m -u 1000 user
|
47 |
|
|
|
|
|
|
|
48 |
# Switch to the non-root user
|
49 |
USER user
|
50 |
|
51 |
# Set environment variables including Hugging Face token
|
52 |
ENV HOME=/home/user \
|
53 |
PATH=/home/user/.local/bin:$PATH \
|
54 |
-
|
55 |
-
RUN --mount=type=secret,id=EXAMPLE,mode=0444,required=true \
|
56 |
-
cat /run/secrets/EXAMPLE > /test
|
57 |
-
|
58 |
|
59 |
# Set working directory for the user
|
60 |
WORKDIR $HOME/app
|
|
|
45 |
# Create a non-root user
|
46 |
RUN useradd -m -u 1000 user
|
47 |
|
48 |
+
RUN --mount=type=secret,id=EXAMPLE,mode=0444,required=true \
|
49 |
+
cat /run/secrets/EXAMPLE > /test
|
50 |
+
|
51 |
# Switch to the non-root user
|
52 |
USER user
|
53 |
|
54 |
# Set environment variables including Hugging Face token
|
55 |
ENV HOME=/home/user \
|
56 |
PATH=/home/user/.local/bin:$PATH \
|
|
|
|
|
|
|
|
|
57 |
|
58 |
# Set working directory for the user
|
59 |
WORKDIR $HOME/app
|