cvs-proxy/Dockerfile
Juan José Gutiérrez de Quevedo Pérez d3b40ae93f feat: Add patchset history and diff support with cvsps integration
- Add cvsps package to Docker dependencies
- Implement patchset retrieval and diff endpoints in API
- Add _run_cvsps_command() helper for cvsps integration
- Enhance file history parsing with log message extraction
- Improve UI with enhanced styling and patchset functionality
2025-11-21 17:18:55 +01:00

29 lines
931 B
Docker

FROM python:3-bookworm
# Set working directory
WORKDIR /app
# Install runtime dependencies (minimal)
RUN apt update && apt install cvs rsh-client cvsps
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -e .
# Set environment variables for configuration (with defaults)
ENV CVS_URL="" \
REPO_CHECKOUTS=/tmp/cvs_checkouts \
CVS_MODULE="" \
BASEPATH="" \
FLASK_HOST=0.0.0.0 \
FLASK_PORT=5000 \
FLASK_DEBUG=false \
CVS_RSH=rsh
# Expose the application port
EXPOSE 5000
# Set the entrypoint to run the application with environment variables as command-line arguments
ENTRYPOINT ["sh", "-c", "python -m cvs_proxy.app --cvs-url \"$CVS_URL\" --repo-checkouts \"$REPO_CHECKOUTS\" ${CVS_MODULE:+--cvs-module \"$CVS_MODULE\"} ${BASEPATH:+--basepath \"$BASEPATH\"} --host \"$FLASK_HOST\" --port \"$FLASK_PORT\" ${FLASK_DEBUG:+--debug}"]