From d03bfb9896148cabff845a0d224d11b424da4d47 Mon Sep 17 00:00:00 2001 From: MartynaSab Date: Fri, 3 Jan 2025 18:16:51 +0100 Subject: [PATCH] dockerised alarmbot --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a5d7faa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +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 && mv alarm_bot .. && cd .. && rm -r src && apt remove golang -y && apt autoremove -y +WORKDIR /conf +CMD /alarm_bot \ No newline at end of file