Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
|
@@ -18,7 +18,15 @@ COPY . .
|
|
| 18 |
# Install private confluence-ingestor wheel using BuildKit secret
|
| 19 |
# -----------------------------
|
| 20 |
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
| 21 |
-
sh -c '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Install other dependencies
|
| 24 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 18 |
# Install private confluence-ingestor wheel using BuildKit secret
|
| 19 |
# -----------------------------
|
| 20 |
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
| 21 |
+
sh -c '\
|
| 22 |
+
TOKEN=$(cat /run/secrets/GITHUB_TOKEN) && \
|
| 23 |
+
echo "Downloading private wheel..." && \
|
| 24 |
+
curl -fL -H "Authorization: token $TOKEN" \
|
| 25 |
+
-o confluence_ingestor-0.3.0-py3-none-any.whl \
|
| 26 |
+
https://github.com/chrisjcc/confluence-ingestor/releases/download/v0.0.1/confluence_ingestor-0.3.0-py3-none-any.whl && \
|
| 27 |
+
echo "Installing wheel..." && \
|
| 28 |
+
pip install --no-cache-dir ./confluence_ingestor-0.3.0-py3-none-any.whl && \
|
| 29 |
+
rm -f confluence_ingestor-0.3.0-py3-none-any.whl'
|
| 30 |
|
| 31 |
# Install other dependencies
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|