dangeroustech/StreamDL

View on GitHub
Dockerfile.server

Summary

Maintainability
Test Coverage
FROM python:3.13-slim-bookworm AS deps
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir uv==0.4.28 && \
    uv sync --all-extras --dev
RUN which uv

# Python Protobuf Server
FROM python:3.13-slim-bookworm AS server
WORKDIR /app
# Copy in app files
COPY --from=deps /app/pyproject.toml /app/pyproject.toml
COPY --from=deps /app/README.md /app/README.md
COPY --from=deps /app/streamdl_proto_srv.py /app/streamdl_proto_srv.py
COPY --from=deps /app/stream_pb2.py /app/stream_pb2.py
COPY --from=deps /app/stream_pb2_grpc.py /app/stream_pb2_grpc.py
COPY --from=deps /app/entrypoint_server.sh /app/entrypoint_server.sh
RUN pip install --no-cache-dir uv==0.4.28 && \
    uv sync
ENTRYPOINT ["/bin/sh", "/app/entrypoint_server.sh"]