This commit is contained in:
Stephen Simpson
2025-12-10 11:20:40 -06:00
parent 316610e932
commit 50345f166f

View File

@@ -1,7 +1,7 @@
# Multi-stage Dockerfile for Rocky Man # Multi-stage Dockerfile for Rocky Man
# This creates an architecture-independent image that can run on x86_64, aarch64, etc. # This creates an architecture-independent image that can run on x86_64, aarch64, etc.
FROM rockylinux/rockylinux:10 AS builder FROM rockylinux/rockylinux:9 AS builder
# Install system dependencies # Install system dependencies
RUN dnf install -y epel-release \ RUN dnf install -y epel-release \
@@ -26,7 +26,7 @@ COPY templates ./templates
RUN python3 -m pip install --no-cache-dir -e . RUN python3 -m pip install --no-cache-dir -e .
# Runtime stage # Runtime stage
FROM rockylinux/rockylinux:10 FROM rockylinux/rockylinux:9
# Install runtime dependencies # Install runtime dependencies
RUN dnf install -y epel-release \ RUN dnf install -y epel-release \
@@ -39,8 +39,8 @@ RUN dnf install -y epel-release \
&& dnf clean all && dnf clean all
# Copy Python packages and app from builder # Copy Python packages and app from builder
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages COPY --from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY --from=builder /usr/local/lib64/python3.12/site-packages /usr/local/lib64/python3.12/site-packages COPY --from=builder /usr/local/lib64/python3.9/site-packages /usr/local/lib64/python3.9/site-packages
COPY --from=builder /app /app COPY --from=builder /app /app
WORKDIR /app WORKDIR /app