Fix docker file compilation

This commit is contained in:
sfigato 2023-03-13 23:40:55 +01:00
parent 1b58c24283
commit 8ad6721315
Signed by: blallo
GPG Key ID: C530464EEDCF489A

View File

@ -1,7 +1,12 @@
FROM golang:1.20 FROM golang:1.20
ENV CGO=1
WORKDIR /src WORKDIR /src
COPY . /src COPY . /src
RUN go build -o / ./cmd/... RUN apt update \
&& apt install -y libsystemd-dev \
&& go build -o / ./cmd/... \
&& rm -rf /var/lib/apt/lists/* /var/cache/*
ENTRYPOINT /broadcast -debug /echo ENTRYPOINT /broadcast -debug /echo