From ca98c442118acd5a97422f1846f8a98b2c0ed0d1 Mon Sep 17 00:00:00 2001 From: DasPoschi Date: Wed, 15 Apr 2026 10:05:36 +0000 Subject: [PATCH] fix: run container as root so SSH key is readable --- jd-webgui/Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/jd-webgui/Dockerfile b/jd-webgui/Dockerfile index 966c9e2..d8df4a1 100644 --- a/jd-webgui/Dockerfile +++ b/jd-webgui/Dockerfile @@ -2,17 +2,15 @@ FROM python:3.12-slim WORKDIR /app -RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* +RUN apt-get update \ + && apt-get install -y --no-install-recommends ffmpeg \ + && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -RUN useradd -m -u 1000 appuser && chown appuser:appuser /app - -USER appuser - -COPY --chown=appuser:appuser app.py . -COPY --chown=appuser:appuser static ./static +COPY app.py . +COPY static ./static EXPOSE 8080 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]