Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -47,6 +47,12 @@ FROM ghcr.io/meta-pytorch/openenv-base:latest
|
|
| 47 |
|
| 48 |
WORKDIR /app
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
COPY --from=builder /app/env/.venv /app/.venv
|
| 51 |
COPY --from=builder /app/env /app/env
|
| 52 |
|
|
|
|
| 47 |
|
| 48 |
WORKDIR /app
|
| 49 |
|
| 50 |
+
# git is needed at runtime because HF Spaces injects ``git config --global ...``
|
| 51 |
+
# into the runtime stage during build, and the openenv-base runtime image does
|
| 52 |
+
# not include git by default.
|
| 53 |
+
RUN apt-get update && apt-get install -y --no-install-recommends git \
|
| 54 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 55 |
+
|
| 56 |
COPY --from=builder /app/env/.venv /app/.venv
|
| 57 |
COPY --from=builder /app/env /app/env
|
| 58 |
|