Use WORKDIR for Dockerfile.
@@ -16,4 +16,5 @@ ENTRYPOINT ["/usr/bin/entrypoint.sh"]
# Copy source files to image
COPY . /root/ippsample/
-RUN cd /root/ippsample; ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var; make clean; make; make install
+WORKDIR /root/ippsample
+RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var; test -f server/ippserver && make clean; make; make install
