mirror of
https://github.com/kemko/reproxy.git
synced 2026-01-02 00:05:49 +03:00
* wip * resolve merge artifacts * full coverage for conductor * wire plugin conductor to main and proxy * wip, with separate match handler * split matching logic with another handler, add initial docs * move parts of proxy to handlers, add tests * add headers in to be sent to proxied url * merged from master * add example with docker compose * supress excesive debug reporting 0-9 disabled in docker * add plugin tests * randomize test port * lint: minor warns * lint: err shadow
20 lines
367 B
Docker
20 lines
367 B
Docker
FROM golang:1.16-alpine as build
|
|
|
|
ENV GOFLAGS="-mod=vendor"
|
|
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"]
|