giredore/Dockerfile

17 lines
754 B
Docker
Raw Normal View History

FROM code.pztrn.name/containers/mirror/golang:1.18.3-alpine AS build
2019-10-07 21:51:45 +05:00
WORKDIR /go/src/sources.dev.pztrn.name/pztrn/giredore
COPY . .
2019-10-16 23:32:21 +05:00
ENV CGO_ENABLED=0
RUN cd /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredored && go build -tags netgo -ldflags '-w -extldflags "-static"' && cd ../giredorectl && go build -tags netgo -ldflags '-w -extldflags "-static"'
2019-10-07 21:51:45 +05:00
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
2019-10-07 21:51:45 +05:00
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredored/giredored /usr/local/bin/giredored
COPY --from=build /go/src/sources.dev.pztrn.name/pztrn/giredore/cmd/giredorectl/giredorectl /usr/local/bin/giredorectl
EXPOSE 62222
2021-11-20 23:08:14 +05:00
ENTRYPOINT [ "/usr/local/bin/giredored" ]