FROM harbor.hxjscloud.com/library/python:3-alpine as builder USER root #RUN apk add --no-cache rust cargo python3-dev libffi-dev USER app COPY --chown=app:app . ./webhook/ WORKDIR /app/webhook RUN python3 -m venv venv &&\ source venv/bin/activate &&\ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip && \ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt && ls -alh FROM harbor.hxjscloud.com/library/python:3-alpine #RUN apk add --no-cache libffi COPY --chown=app:app --from=builder /app/webhook/ ./webhook WORKDIR /app/webhook CMD source /app/webhook/venv/bin/activate &&\ MODE=prod waitress-serve --ident="webhook" --connection-limit=500 --call wsgi:run