From ba7cc381cf4005affd0d507bbce42f3f1a7b9fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Sun, 5 Oct 2025 21:11:12 +0200 Subject: [PATCH] feat(infrastructure): revert rootless container --- 7project/backend/Dockerfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/7project/backend/Dockerfile b/7project/backend/Dockerfile index 327d5bf..b517161 100644 --- a/7project/backend/Dockerfile +++ b/7project/backend/Dockerfile @@ -1,13 +1,6 @@ FROM python:3.11-slim WORKDIR /app -# Create a non-root user with a fixed numeric UID/GID so Kubernetes can verify runAsNonRoot -RUN groupadd -g 1000 appgroup \ - && useradd -u 1000 -g 1000 -m appuser \ - && chown -R 1000:1000 /app -# Use numeric UID to avoid "non-numeric user" errors in Kubernetes -USER 1000 - COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . .