Dockerfile 264 B

12345678910111213141516
  1. FROM golang:alpine
  2. COPY . /src
  3. WORKDIR /src
  4. RUN apk add build-base libpcap-dev
  5. RUN make compile
  6. FROM alpine:latest
  7. RUN apk update && apk add libpcap
  8. COPY --from=0 /src/munchclient /usr/bin/
  9. CMD /usr/bin/munchclient -config /etc/munchclient/munchclient.toml