[go: nahoru, domu]

Dockerfile: Builds from checked out repo

Got rid of how the Dockerfile cloned a new repo to build. Now it
builds from the already checked out one on the users machine.

Signed-off-by: John Andersen <john.s.andersen@intel.com>
diff --git a/Dockerfile b/Dockerfile
index 36295f0..dabdb80 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,9 +23,11 @@
   tar axf ibmtpm532.tar -C ibmtpm532 && \
   make -C ibmtpm532/src -j$(nproc)
 
-RUN git clone https://github.com/01org/TPM2.0-TSS && \
-  cd TPM2.0-TSS && \
+COPY . TPM2.0-TSS
+
+RUN cd TPM2.0-TSS && \
   ./bootstrap && \
+  rm -rf ./build && \
   mkdir ./build && \
   cd ./build && \
   ../configure --enable-unit --with-simulatorbin=$(pwd)/../../ibmtpm532/src/tpm_server && \