Dockerfile 411 B

1234567891011121314151617181920
  1. FROM ubuntu:18.04
  2. RUN apt-get update && apt-get install --yes \
  3. autoconf \
  4. automake \
  5. gcc \
  6. libtool \
  7. make
  8. RUN useradd builder
  9. RUN mkdir /json-c-install && chown builder:nogroup /json-c-install
  10. USER builder
  11. COPY --chown=builder:nogroup ./json-c /json-c
  12. WORKDIR /json-c
  13. RUN sh autogen.sh
  14. RUN ./configure --prefix=/json-c-install --enable-threading
  15. RUN make
  16. RUN make check
  17. RUN make install