1
0
Fork 0

dockerised alarmbot

This commit is contained in:
martyna 2025-01-03 18:16:51 +01:00 committed by Michał Rudowicz
parent cdcef69618
commit d03bfb9896
1 changed files with 7 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -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