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