Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +13 -1
Dockerfile
CHANGED
@@ -15,4 +15,16 @@ WORKDIR $HOME/app
|
|
15 |
|
16 |
COPY --chown=user . $HOME/app
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
COPY --chown=user . $HOME/app
|
17 |
|
18 |
+
RUN --mount=type=secret,id=SECRET_KEY,mode=0444,required=true \
|
19 |
+
cat /run/secrets/SECRET_KEY > /test
|
20 |
+
|
21 |
+
RUN --mount=type=secret,id=ALGORITHM,mode=0444,required=true \
|
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"]
|