mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-02 00:05:49 +03:00
19 lines
341 B
Docker
19 lines
341 B
Docker
FROM golang:1.16-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 ghcr.io/umputun/baseimage/app:v1.6.1 as base
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /build/plugin-example /srv/plugin-example
|
|
|
|
WORKDIR /srv
|
|
ENTRYPOINT ["/srv/plugin-example"]
|