FROM docker.io/library/python:3.12-slim RUN useradd -m -u 1000 user WORKDIR /app COPY server.py . USER user EXPOSE 7860 CMD ["python", "server.py"]