Commit ·
054e6df
1
Parent(s): d696627
Fix HF app Dockerfile: drop alp-data clone, install from PyPI
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
|
@@ -18,15 +18,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 18 |
|
| 19 |
RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
|
| 20 |
git -c "http.https://github.com/.extraheader=Authorization: Basic $(printf 'x-access-token:%s' "$(cat /run/secrets/GH_TOKEN)" | base64 | tr -d '\n')" \
|
| 21 |
-
clone --single-branch --depth 1 https://github.com/earthspecies/esp-research.git /app/esp-research
|
| 22 |
-
git -c "http.https://github.com/.extraheader=Authorization: Basic $(printf 'x-access-token:%s' "$(cat /run/secrets/GH_TOKEN)" | base64 | tr -d '\n')" \
|
| 23 |
-
clone --single-branch --depth 1 https://github.com/earthspecies/esp-data.git /app/esp-data
|
| 24 |
|
| 25 |
-
#
|
| 26 |
-
#
|
| 27 |
-
# the clone and then do a sync
|
| 28 |
WORKDIR /app/esp-research
|
| 29 |
-
RUN uv add /app/esp-data
|
| 30 |
RUN uv sync --frozen
|
| 31 |
|
| 32 |
WORKDIR /app/esp-research/projects/NatureLM-audio-hf-app
|
|
|
|
| 18 |
|
| 19 |
RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
|
| 20 |
git -c "http.https://github.com/.extraheader=Authorization: Basic $(printf 'x-access-token:%s' "$(cat /run/secrets/GH_TOKEN)" | base64 | tr -d '\n')" \
|
| 21 |
+
clone --single-branch --depth 1 https://github.com/earthspecies/esp-research.git /app/esp-research
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
# alp-data is now published on PyPI and pinned in esp-research's pyproject.toml,
|
| 24 |
+
# so uv sync resolves it directly -- no separate clone needed.
|
|
|
|
| 25 |
WORKDIR /app/esp-research
|
|
|
|
| 26 |
RUN uv sync --frozen
|
| 27 |
|
| 28 |
WORKDIR /app/esp-research/projects/NatureLM-audio-hf-app
|