Dockerfile 491 B

123456789101112131415161718192021
  1. FROM ubuntu:18.04 as builder
  2. COPY ntripcaster /ntripcaster
  3. WORKDIR /ntripcaster
  4. RUN apt-get update && apt-get install build-essential --assume-yes
  5. RUN ./configure
  6. RUN make install
  7. # The builder image is dumped and a fresh image is used
  8. # just with the built binary, config and logs made from 'make install'
  9. FROM ubuntu:18.04
  10. COPY --from=builder /usr/local/ntripcaster/ /usr/local/ntripcaster/
  11. EXPOSE 2101
  12. WORKDIR /usr/local/ntripcaster/logs
  13. CMD /usr/local/ntripcaster/bin/ntripcaster