13 lines
328 B
Docker
13 lines
328 B
Docker
FROM xena/go:1.14 AS build
|
|
ENV PORT 2222
|
|
ENV TARGET 127.0.0.1:22
|
|
ENV GOPROXY https://cache.greedo.xeserv.us
|
|
ENV CGO_ENABLED 0
|
|
WORKDIR /within/proxystrip
|
|
COPY . .
|
|
RUN GOBIN=/usr/local/bin go install
|
|
|
|
FROM gitea/gitea:1.11.5
|
|
COPY --from=build /usr/local/bin/proxystrip /usr/local/bin/proxystrip
|
|
COPY run.sh /etc/s6/proxystrip/run
|