Spaces:
Sleeping
Sleeping
Commit
·
acf1663
1
Parent(s):
83d67ca
change secret add line poistion
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -5,6 +5,10 @@ RUN useradd -m -u 1000 user
|
|
5 |
USER user
|
6 |
# Add the user's local bin directory to the PATH
|
7 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
|
|
|
|
|
8 |
# Set the working directory in the container to /app
|
9 |
WORKDIR /app
|
10 |
# Copy the requirements.txt file from the host to the container
|
@@ -24,6 +28,3 @@ RUN ls -l /app
|
|
24 |
|
25 |
# Specify the command to run when the container starts
|
26 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
27 |
-
# Pass the secret variable to the application
|
28 |
-
|
29 |
-
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|
|
|
5 |
USER user
|
6 |
# Add the user's local bin directory to the PATH
|
7 |
ENV PATH="/home/user/.local/bin:$PATH"
|
8 |
+
|
9 |
+
# Pass the secret variable to the application
|
10 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true
|
11 |
+
|
12 |
# Set the working directory in the container to /app
|
13 |
WORKDIR /app
|
14 |
# Copy the requirements.txt file from the host to the container
|
|
|
28 |
|
29 |
# Specify the command to run when the container starts
|
30 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
|
|