docker container implementation

This commit is contained in:
MuratovAS 2022-03-26 22:29:01 +05:00 committed by MuratovAS
parent ef3016938d
commit 411d0fb777
3 changed files with 47 additions and 0 deletions

14
docker/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM golang:alpine AS go-build
RUN apk --no-cache add --update git
RUN git clone https://github.com/octeep/wireproxy.git
RUN cd ./wireproxy && go build
FROM alpine:latest
RUN apk upgrade
COPY --from=go-build /go/wireproxy/wireproxy /usr/bin/
VOLUME [ "/etc/wireproxy"]
ENTRYPOINT [ "/usr/bin/wireproxy", "/etc/wireproxy/config" ]