1
0
Fork 0
hswro-alarm-bot/Dockerfile

7 lines
298 B
Docker
Raw 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
RUN cd /src && go build && mv alarm_bot .. && cd .. && rm -r src && apt remove golang -y && apt autoremove -y
WORKDIR /conf
CMD /alarm_bot