Spaces:
Paused
Paused
github-actions[bot] commited on
Commit ·
4c25e63
1
Parent(s): 4b70db3
Automated sync from GitHub
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -114,7 +114,8 @@ ENV PATH=${MINICONDA_DIR}/envs/${CONDA_ENV}/bin:${MINICONDA_DIR}/bin:$PATH
|
|
| 114 |
# -----------------------------------------------------------------------------
|
| 115 |
RUN echo "Better logs#2"
|
| 116 |
|
| 117 |
-
|
|
|
|
| 118 |
if [ -f /run/secrets/GIT_TOKEN ]; then \
|
| 119 |
TOKEN=$(cat /run/secrets/GIT_TOKEN); \
|
| 120 |
GIT_URL="https://${TOKEN}@github.com/${REPO_OWNER}/${REPO_NAME}.git"; \
|
|
|
|
| 114 |
# -----------------------------------------------------------------------------
|
| 115 |
RUN echo "Better logs#2"
|
| 116 |
|
| 117 |
+
# Added mode=0444 so the non-root user can read the secret file
|
| 118 |
+
RUN --mount=type=secret,id=GIT_TOKEN,mode=0444,required=false \
|
| 119 |
if [ -f /run/secrets/GIT_TOKEN ]; then \
|
| 120 |
TOKEN=$(cat /run/secrets/GIT_TOKEN); \
|
| 121 |
GIT_URL="https://${TOKEN}@github.com/${REPO_OWNER}/${REPO_NAME}.git"; \
|