11# Build stage for supervisor binary
2- FROM rust:1.75 -slim as rust-builder
2+ FROM rust:1.89 -slim AS rust-builder
33
44WORKDIR /build
5- COPY VERSION /build/VERSION
6- COPY supervisor /build/supervisor
7- RUN cd /build/supervisor && cargo build --release
5+ COPY supervisor/ /build/
6+ RUN
7+ RUN cargo build --release
88
99# Final stage
1010FROM python:3.12-slim
@@ -18,26 +18,21 @@ RUN apt-get update && \
1818 curl \
1919 netcat-openbsd \
2020 xz-utils \
21- nodejs \
22- npm \
21+ nodejs \
22+ npm \
2323 && rm -rf /var/lib/apt/lists/*
2424
25- # for github.com ssh access
26- COPY dot.ssh/* /root/.ssh/
27-
28- RUN mkdir -p /scripts
25+ RUN mkdir -p /scripts /webhook
2926COPY VERSION /scripts/VERSION
30- COPY check-push.sh /scripts
31- COPY prod2latest.sh /scripts
32- COPY cleanup-archives.sh /scripts
27+ COPY src/check-push.sh /scripts
3328
3429# Copy supervisor binary from build stage
35- COPY --from=rust-builder /build/supervisor/ target/release/supervisor /supervisor
36- RUN chmod +x /supervisor
30+ COPY --from=rust-builder /build/target/release/git- supervisor /git- supervisor
31+ RUN chmod +x /git- supervisor
3732
38- WORKDIR /webhook
39- COPY hook.py /webhook
40- COPY *.whl /webhook
41- RUN pip install /webhook/*.whl
33+ # Webhook: install deps and copy script (no wheel build)
34+ RUN pip install --no-cache-dir "flask>=3.0.3"
35+ COPY gh-webhook/hook.py /webhook/hook.py
4236
43- CMD /webhook/hook.py
37+ WORKDIR /webhook
38+ CMD ["python3" , "/webhook/hook.py" ]
0 commit comments