diff --git a/Dockerfile b/Dockerfile index 9c76a8f..12604db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM ubuntu:20.04 AS builder RUN apt-get update && \ apt-get install -y build-essential curl gcc jq make && \ @@ -8,7 +8,16 @@ RUN apt-get update && \ RUN curl -LO https://github.com/polyml/polyml/archive/v5.8.tar.gz && \ tar xf v5.8.tar.gz && \ - cd polyml-5.8 && ./configure --prefix=/usr && make && make install + cd polyml-5.8 && ./configure --prefix=/tmp && make && make install +FROM ubuntu:20.04 + +RUN apt-get update && \ + apt-get install -y jq && \ + apt-get purge --auto-remove && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +COPY --from=builder /tmp/ /usr/ COPY . /opt/test-runner WORKDIR /opt/test-runner