docker container implementation

This commit is contained in:
MuratovAS
2022-03-26 22:29:01 +05:00
parent 7b553f28f1
commit 37208afb4c
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" ]