Merge pull request #81 from nickshanks347/master

Update Dockerfile to build properly
This commit is contained in:
Anders Pitman 2021-04-06 21:35:45 -06:00 committed by GitHub
commit 0bb64b23b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,12 +10,12 @@ RUN go mod download
COPY . .
RUN rice embed-go
RUN CGO_ENABLED=0 go build -o boringproxy
RUN chmod +x boringproxy
RUN cd cmd/boringproxy && CGO_ENABLED=0 go build -o boringproxy
FROM scratch
EXPOSE 80 443
COPY --from=builder /build/boringproxy /
COPY --from=builder /build/cmd/boringproxy/boringproxy /
ENTRYPOINT ["/boringproxy"]
CMD ["server"]