1
0
mirror of https://github.com/umputun/reproxy.git synced 2025-11-23 22:04:57 +02:00
Files
reproxy/examples/plugin/Dockerfile
2024-05-10 15:10:28 -05:00

17 lines
290 B
Docker

FROM golang:1.22-alpine as build
ENV CGO_ENABLED=0
ADD . /build
WORKDIR /build
RUN go build -o /build/plugin-example -ldflags "-X main.revision=${version} -s -w"
FROM scratch
COPY --from=build /build/plugin-example /srv/plugin-example
WORKDIR /srv
ENTRYPOINT ["/srv/plugin-example"]