Run as amarillo user
Some checks failed
Amarillo/amarillo-gitea/amarillo-gtfs-generator/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2024-06-28 13:51:28 +02:00
parent e307b3c1cd
commit 41b963d50c

View file

@ -15,6 +15,9 @@ COPY ./logging.conf /app
ENV MODULE_NAME=amarillo-gtfs-generator.gtfs_generator ENV MODULE_NAME=amarillo-gtfs-generator.gtfs_generator
ENV MAX_WORKERS=1 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 # 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"] # CMD ["uvicorn", "amarillo.main:app", "--host", "0.0.0.0", "--port", "8000"]