From 49079dfef9ae06fc991d35398f664af0aa33c94c Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Fri, 28 Jun 2024 13:52:15 +0200 Subject: [PATCH] Run as amarillo user --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 65e13ae..bc94c2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,9 @@ COPY ./logging.conf /app ENV MODULE_NAME=amarillo-enhancer.enhancer ENV MAX_WORKERS=1 +RUN useradd amarillo +USER amarillo + # This image inherits uvicorn-gunicorn's CMD. If you'd like to start uvicorn, use this instead # CMD ["uvicorn", "amarillo.main:app", "--host", "0.0.0.0", "--port", "8000"]