From 41b963d50c03714cf871f350703e16f2de8ad32b Mon Sep 17 00:00:00 2001 From: Francia Csaba Date: Fri, 28 Jun 2024 13:51:28 +0200 Subject: [PATCH] Run as amarillo user --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 39e9958..2744f55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ COPY ./logging.conf /app ENV MODULE_NAME=amarillo-gtfs-generator.gtfs_generator 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"]