Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse filesexposing the secret (lololol)
- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -53,5 +53,9 @@ RUN chmod 777 -R /runs
|
|
| 53 |
RUN chmod 777 -R /.cache
|
| 54 |
RUN chmod +x /entrypoint.sh
|
| 55 |
|
| 56 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
| 53 |
RUN chmod 777 -R /.cache
|
| 54 |
RUN chmod +x /entrypoint.sh
|
| 55 |
|
| 56 |
+
# Expose the secret DEBUG at buildtime and use its value as git remote URL
|
| 57 |
+
RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
|
| 58 |
+
git init && \
|
| 59 |
+
git remote add origin $(cat /run/secrets/DEBUG)
|
| 60 |
+
|
| 61 |
ENTRYPOINT ["/entrypoint.sh"]
|