FROM python:3.12-alpine AS venv RUN ["mkdir", "-p", "/app"] COPY ["bot.py", "/app/bot.py"] COPY ["start.sh", "/app/start.sh"] COPY ["install.sh", "/app/install.sh"] RUN ["sh", "/app/install.sh"] FROM scratch COPY --from=venv / / USER 1455:1455 ENTRYPOINT ["/app/start.sh"]