Spaces:
Runtime error
Runtime error
Beamlnwza
commited on
Commit
·
72d7247
1
Parent(s):
342d3dd
s3 secret update
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -17,9 +17,9 @@ WORKDIR $HOME/app
|
|
17 |
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
-
RUN
|
21 |
|
22 |
-
RUN --mount=type=secret,id=
|
23 |
-
|
24 |
|
25 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
17 |
|
18 |
COPY --chown=user . $HOME/app
|
19 |
|
20 |
+
RUN touch $HOME/app/.env
|
21 |
|
22 |
+
RUN --mount=type=secret,id=S3,mode=0444,required=true \
|
23 |
+
echo "$(cat /run/secrets/S3)" >> $HOME/app/.env
|
24 |
|
25 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|