fix project file structure

This commit is contained in:
octeep 2022-03-29 00:32:44 +01:00 committed by octeep
parent c193ae32fa
commit 4937223047
4 changed files with 997 additions and 6 deletions

View file

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