mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-30 19:02:16 +00:00
Move all 6 Docker files (Dockerfile, Dockerfile.gpu, Dockerfile.gpu.rocm, Dockerfile.sandbox, docker-compose.yml, docker-compose.gpu.rocm.yml) from the project root into deploy/docker/ to reduce root-level clutter. Update build context paths in both docker-compose files to point back to the project root (../..) so Docker builds continue to work correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
688 B
Docker
28 lines
688 B
Docker
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04 AS builder
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends python3 python3-pip python3-venv && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml README.md ./
|
|
COPY src/ src/
|
|
|
|
RUN pip install --no-cache-dir uv && \
|
|
uv pip install --system ".[server]"
|
|
|
|
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends python3 python3-pip && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /usr/local /usr/local
|
|
COPY --from=builder /app /app
|
|
WORKDIR /app
|
|
|
|
EXPOSE 8000
|
|
|
|
ENTRYPOINT ["jarvis"]
|
|
CMD ["serve", "--host", "0.0.0.0", "--port", "8000"]
|