Fix docker file compilation
This commit is contained in:
parent
1b58c24283
commit
8ad6721315
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user