updates
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,7 +1,7 @@
|
||||
# Multi-stage Dockerfile for Rocky Man
|
||||
# This creates an architecture-independent image that can run on x86_64, aarch64, etc.
|
||||
|
||||
FROM rockylinux/rockylinux:9 AS builder
|
||||
FROM rockylinux/rockylinux:10 AS builder
|
||||
|
||||
# Install system dependencies
|
||||
RUN dnf install -y epel-release \
|
||||
@@ -18,7 +18,7 @@ RUN dnf install -y epel-release \
|
||||
WORKDIR /app
|
||||
|
||||
# Copy project files
|
||||
COPY pyproject.toml README.md LICENSE THIRD-PARTY-LICENSES.md ./
|
||||
COPY pyproject.toml README.md LICENSE ./
|
||||
COPY src ./src
|
||||
COPY templates ./templates
|
||||
|
||||
@@ -26,7 +26,7 @@ COPY templates ./templates
|
||||
RUN python3 -m pip install --no-cache-dir -e .
|
||||
|
||||
# Runtime stage
|
||||
FROM rockylinux/rockylinux:9
|
||||
FROM rockylinux/rockylinux:10
|
||||
|
||||
# Install runtime dependencies
|
||||
RUN dnf install -y epel-release \
|
||||
@@ -39,8 +39,8 @@ RUN dnf install -y epel-release \
|
||||
&& dnf clean all
|
||||
|
||||
# Copy Python packages and app from builder
|
||||
COPY --from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
|
||||
COPY --from=builder /usr/local/lib64/python3.9/site-packages /usr/local/lib64/python3.9/site-packages
|
||||
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
|
||||
COPY --from=builder /usr/local/lib64/python3.12/site-packages /usr/local/lib64/python3.12/site-packages
|
||||
COPY --from=builder /app /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user