Upload folder using huggingface_hub
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
|
@@ -1,10 +1,5 @@
|
|
| 1 |
FROM docker.io/matrixconduit/matrix-conduit:latest AS conduit
|
| 2 |
|
| 3 |
-
FROM debian:bookworm-slim AS conduit-extract
|
| 4 |
-
# Copy the entire nix store from conduit image, then find and move the binary
|
| 5 |
-
COPY --from=conduit /nix /nix
|
| 6 |
-
RUN find /nix -name "conduit" -type f | head -1 | xargs -I{} cp {} /conduit-bin
|
| 7 |
-
|
| 8 |
FROM python:3.11-slim
|
| 9 |
|
| 10 |
# Install system deps
|
|
@@ -12,9 +7,11 @@ RUN apt-get update && \
|
|
| 12 |
apt-get install -y nginx supervisor curl && \
|
| 13 |
rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
# Copy conduit binary
|
| 16 |
-
COPY --from=conduit
|
| 17 |
-
RUN
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Install Python deps
|
| 20 |
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
| 1 |
FROM docker.io/matrixconduit/matrix-conduit:latest AS conduit
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
FROM python:3.11-slim
|
| 4 |
|
| 5 |
# Install system deps
|
|
|
|
| 7 |
apt-get install -y nginx supervisor curl && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Copy the entire conduit nix store from official image and symlink the binary
|
| 11 |
+
COPY --from=conduit /nix /nix
|
| 12 |
+
RUN find /nix -name "conduit" -type f | head -1 | xargs -I{} ln -sf {} /usr/local/bin/conduit && \
|
| 13 |
+
chmod +x /usr/local/bin/conduit && \
|
| 14 |
+
conduit --version || echo "conduit binary ready"
|
| 15 |
|
| 16 |
# Install Python deps
|
| 17 |
COPY requirements.txt /tmp/requirements.txt
|