Add dark mode UI and update components
This commit is contained in:
parent
f2817bc1f1
commit
c263092c10
9 changed files with 488 additions and 87 deletions
39
Dockerfile
39
Dockerfile
|
|
@ -1,52 +1,29 @@
|
|||
FROM python:3.13-slim AS builder
|
||||
FROM python:3-bookworm
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies for CVS
|
||||
RUN apt-get update && \
|
||||
apt-get install -y cvs && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
# Install runtime dependencies (minimal)
|
||||
RUN apt update && apt install cvs rsh-client
|
||||
|
||||
# Copy only requirements first to leverage docker cache
|
||||
COPY requirements.txt .
|
||||
COPY . .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Install the package in editable mode
|
||||
RUN pip install --no-cache-dir -e .
|
||||
|
||||
# Final stage
|
||||
FROM python:3.13-slim
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install CVS
|
||||
RUN apt-get update && \
|
||||
apt-get install -y cvs && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy only necessary files from builder
|
||||
COPY --from=builder /app /app
|
||||
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
|
||||
|
||||
# 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
|
||||
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\"} --host \"$FLASK_HOST\" --port \"$FLASK_PORT\" ${FLASK_DEBUG:+--debug}"]
|
||||
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}"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue