FROM python:3.12 WORKDIR /code RUN pip install fastapi httpx pydantic uvicorn COPY . . RUN chmod 777 /code RUN groupadd -r user && useradd -r -g user user RUN chown -R user:user /code && chmod -R 777 /code USER user CMD python /code/app.py