Explorar o código

Mise à jour CODENAME

Récupération de la version du système pour le builder python
yvroum hai 1 hora
pai
achega
7abfbac0ea
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      BACKEND/Dockerfile

+ 3 - 1
BACKEND/Dockerfile

@@ -1,6 +1,8 @@
 # Multi-stage Dockerfile for ARM64 optimization
 # Stage 1: Build dependencies + PyArmor obfuscation
-FROM python:3.11-slim-bullseye as builder
+ENV CODENAME=`lsb_release -a | grep Codename | awk '{ print $2 }'`
+
+FROM python:3.11-slim-"$CODENAME" as builder
 
 # Install system dependencies for building
 RUN apt-get update && apt-get install -y \