Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -12
Dockerfile
CHANGED
@@ -8,6 +8,7 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
8 |
|
9 |
RUN useradd -m -u 1000 user
|
10 |
USER user
|
|
|
11 |
ENV HOME=/home/user \
|
12 |
PATH=/home/user/.local/bin:$PATH
|
13 |
|
@@ -15,16 +16,9 @@ WORKDIR $HOME/app
|
|
15 |
|
16 |
COPY --chown=user . $HOME/app
|
17 |
|
18 |
-
RUN --mount=type=secret,id=SECRET_KEY,mode=0444,required=true
|
19 |
-
|
20 |
-
|
21 |
-
RUN --mount=type=secret,id=
|
22 |
-
cat /run/secrets/ALGORITHM > /test
|
23 |
-
|
24 |
-
RUN --mount=type=secret,id=SUPERUSER_USERNAME,mode=0444,required=true \
|
25 |
-
cat /run/secrets/SUPERUSER_USERNAME > /test
|
26 |
-
|
27 |
-
RUN --mount=type=secret,id=SUPERUSER_PASSWORD,mode=0444,required=true \
|
28 |
-
cat /run/secrets/SUPERUSER_PASSWORD > /test
|
29 |
|
30 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
8 |
|
9 |
RUN useradd -m -u 1000 user
|
10 |
USER user
|
11 |
+
|
12 |
ENV HOME=/home/user \
|
13 |
PATH=/home/user/.local/bin:$PATH
|
14 |
|
|
|
16 |
|
17 |
COPY --chown=user . $HOME/app
|
18 |
|
19 |
+
RUN --mount=type=secret,id=SECRET_KEY,mode=0444,required=true
|
20 |
+
RUN --mount=type=secret,id=ALGORITHM,mode=0444,required=true
|
21 |
+
RUN --mount=type=secret,id=SUPERUSER_USERNAME,mode=0444,required=true
|
22 |
+
RUN --mount=type=secret,id=SUPERUSER_PASSWORD,mode=0444,required=true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|