FROM debian:12-slim RUN apt update && apt install golang -y --no-install-recommends && apt install ca-certificates -y RUN mkdir /src && mkdir /conf COPY . /src RUN cd /src && go build FROM debian:12-slim COPY --from=0 /conf /conf COPY --from=0 /src/alarm_bot / WORKDIR /conf CMD ["/alarm_bot"]