1
0
Fork 0
hswro-alarm-bot/Dockerfile

12 lines
295 B
Docker
Raw Permalink Normal View History

2025-01-03 17:16:51 +00:00
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
2025-01-03 18:53:23 +00:00
RUN cd /src && go build
FROM debian:12-slim
COPY --from=0 /conf /conf
COPY --from=0 /src/alarm_bot /
2025-01-03 17:16:51 +00:00
WORKDIR /conf
2025-01-03 21:01:13 +00:00
CMD ["/alarm_bot"]