From 1b5437b6f4b60bbda731194247134362d20cd9ba Mon Sep 17 00:00:00 2001 From: Armin Friedl Date: Sun, 20 Dec 2020 00:14:14 +0100 Subject: [PATCH] Copy build context for patch file --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ebd915c..490a4c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN apt-get install -y flex-old bison build-essential \ libc6-i386 default-jdk \ gdb +RUN mkdir -p /tmp/build +COPY . /tmp/build + # Install student dist # Note that this is _not_ what is in the `/usr/class/cs143` subdirectory in the @@ -55,7 +58,7 @@ RUN sed -i 's/-zx/-ozx/g' \ # b) satisfy libfl > 2.5.39 which expects a yylex symbol # c) fix mangling errors of yylex when compiled with a c++ compiler # d) be as non-invasive as possible to the existing assignment code -RUN patch -u /usr/class/assignments/PA2/cool.flex -i cool.flex.patch +RUN patch -u /usr/class/assignments/PA2/cool.flex -i /tmp/build/cool.flex.patch # Setup working directory RUN mkdir -p /class