FROM python:alpine WORKDIR /app COPY . . RUN apk add --no-cache gcc libc-dev libxml2-dev libxslt-dev && \ rm -rf /var/cache/apk/* RUN pip install --no-cache-dir --requirement requirements.txt RUN addgroup -g 9999 lilia EXPOSE 5000 USER nobody:lilia ENTRYPOINT ["python", "app.py"]