Delete Dockerfile with huggingface_hub
Browse files- Dockerfile +0 -25
Dockerfile
DELETED
|
@@ -1,25 +0,0 @@
|
|
| 1 |
-
FROM node:24-bookworm-slim@sha256:a5f4366e834695d5f363b920c104953a535d3a9864d1bdf74566a0ebe01daee5 AS web
|
| 2 |
-
WORKDIR /build/web
|
| 3 |
-
ENV NEXT_TELEMETRY_DISABLED=1
|
| 4 |
-
COPY web/package*.json ./
|
| 5 |
-
RUN --mount=type=secret,id=build_ca if [ -f /run/secrets/build_ca ]; then export NODE_EXTRA_CA_CERTS=/run/secrets/build_ca; fi; npm ci --no-audit --no-fund
|
| 6 |
-
COPY web/ ./
|
| 7 |
-
RUN npm run build
|
| 8 |
-
|
| 9 |
-
FROM python:3.12-slim-bookworm@sha256:34386ef0cb081344d7ec1c103ba398e6e9f64e9ab3a1509accc92a4e24a07258 AS runtime
|
| 10 |
-
RUN export http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY"; apt-get update && apt-get install -y --no-install-recommends ca-certificates libatomic1 && rm -rf /var/lib/apt/lists/*
|
| 11 |
-
COPY --from=web /usr/local/bin/node /usr/local/bin/node
|
| 12 |
-
WORKDIR /app
|
| 13 |
-
COPY requirements-runtime.txt ./
|
| 14 |
-
RUN --mount=type=secret,id=build_ca if [ -f /run/secrets/build_ca ]; then export PIP_CERT=/run/secrets/build_ca; fi; pip install --no-cache-dir -r requirements-runtime.txt
|
| 15 |
-
COPY --chown=1000:1000 vrag ./vrag
|
| 16 |
-
COPY --chown=1000:1000 config ./config
|
| 17 |
-
COPY --chown=1000:1000 scripts/cloud-start.py ./scripts/cloud-start.py
|
| 18 |
-
COPY --from=web --chown=1000:1000 /build/web/.next/standalone ./web/.next/standalone
|
| 19 |
-
COPY --from=web --chown=1000:1000 /build/web/.next/static ./web/.next/standalone/.next/static
|
| 20 |
-
RUN useradd -m -u 1000 mentor && mkdir -p /app/data/videos && chown -R mentor:mentor /app/data
|
| 21 |
-
USER mentor
|
| 22 |
-
ENV PYTHONUNBUFFERED=1 NEXT_TELEMETRY_DISABLED=1 VRAG_DATA=/app/data
|
| 23 |
-
EXPOSE 7860
|
| 24 |
-
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/api/health', timeout=4)"
|
| 25 |
-
CMD ["python", "scripts/cloud-start.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|