Skip to content

Commit 008ec46

Browse files
committed
Speedup build_in_docker by only copying the necessary files
1 parent de70cd3 commit 008ec46

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ task :build_in_docker => :templates do
8383
versions.each do |version|
8484
dockerfile = <<~DOCKERFILE
8585
FROM docker.io/library/gcc:#{version}
86-
ADD . /prism
86+
COPY Makefile /prism/
87+
COPY src /prism/src
88+
COPY include /prism/include
8789
WORKDIR /prism
8890
RUN gcc --version
8991
RUN make SOEXT=so

0 commit comments

Comments
 (0)