13 lines
215 B
Docker
13 lines
215 B
Docker
FROM golang:1.20
|
|
|
|
ENV CGO=1
|
|
|
|
WORKDIR /src
|
|
COPY . /src
|
|
RUN apt update \
|
|
&& apt install -y libsystemd-dev \
|
|
&& go build -o / ./cmd/... \
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/*
|
|
|
|
ENTRYPOINT ["/broadcast"]
|