2024-07-12 20:27:44 +01:00
|
|
|
FROM docker.io/golang:1.21.6-bookworm as build
|
2024-01-30 19:34:19 +00:00
|
|
|
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
|
|
GOOS=linux \
|
|
|
|
GOFLAGS="-tags=moderncsqlite"
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
COPY . /build
|
|
|
|
|
|
|
|
RUN make soju
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /build/soju /app/soju
|
|
|
|
COPY --from=build /build/sojuctl /app/sojuctl
|
|
|
|
COPY --from=build /build/sojudb /app/sojudb
|
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
|
|
|
|
CMD ["/app/soju"]
|