mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-21 04:23:15 +01:00
Remove unused rrdtool-bindings and move main image to Python 3.14
This commit is contained in:
+2
-9
@@ -1,20 +1,13 @@
|
|||||||
# Build stage: install build dependencies and Python packages
|
# Build stage: install build dependencies and Python packages
|
||||||
FROM python:3.12-bookworm AS builder
|
FROM python:3.14-slim AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install build dependencies required for compiling C extensions
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
gcc \
|
|
||||||
build-essential \
|
|
||||||
librrd-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy requirements and install Python packages to a separate directory
|
# Copy requirements and install Python packages to a separate directory
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app/
|
||||||
RUN pip install --prefix=/install --no-cache-dir -r requirements.txt
|
RUN pip install --prefix=/install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Final stage: runtime image
|
# Final stage: runtime image
|
||||||
FROM python:3.12-slim
|
FROM python:3.14-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install necessary runtime packages
|
# Install necessary runtime packages
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ pytz==2026.6
|
|||||||
PyYAML==6.0.3
|
PyYAML==6.0.3
|
||||||
qrcode==8.2
|
qrcode==8.2
|
||||||
requests==2.34.2
|
requests==2.34.2
|
||||||
rrdtool-bindings==0.5.0
|
|
||||||
setuptools==84.2.1
|
setuptools==84.2.1
|
||||||
sqlparse==0.6.1
|
sqlparse==0.6.1
|
||||||
typing_extensions==4.16.0
|
typing_extensions==4.16.0
|
||||||
|
|||||||
Reference in New Issue
Block a user