Smoke test in docker build

pull/1374/head
Piero Toffanin 2021-11-17 13:08:57 -05:00
rodzic 998a7cb016
commit 4eba4cf310
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -38,9 +38,11 @@ COPY --from=builder /usr/local /usr/local
# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test
RUN bash configure.sh installruntimedepsonly \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]

Wyświetl plik

@ -42,9 +42,11 @@ RUN apt update && apt install -y nvidia-opencl-icd-340 intel-opencl-icd
# Install shared libraries that we depend on via APT, but *not*
# the -dev packages to save space!
# Also run a smoke test
RUN bash configure.sh installruntimedepsonly \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& bash run.sh --help
# Entry point
ENTRYPOINT ["python3", "/code/run.py"]