Skip to content

Commit

Permalink
Use make clean instead of rm
Browse files Browse the repository at this point in the history
  • Loading branch information
reyery committed Dec 16, 2024
1 parent 7099abb commit 4c9fa4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ RUN cd build \
&& make radfiles2daysim \
&& cd bin \
&& mv ds_illum epw2wea gen_dc oconv radfiles2daysim /build \
&& rm -rf ../../build/*
&& make clean

# uncommenting line in CMakeLists to build rtrace_dc
RUN sed -i 's/#add_definitions(-DDAYSIM)/add_definitions(-DDAYSIM)/' /Daysim/src/rt/CMakeLists.txt \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release /Daysim \
&& make rtrace \
&& cd bin \
&& mv rtrace /build/rtrace_dc \
&& rm -rf ../../build/*
&& mv rtrace /build/rtrace_dc

FROM debian:12-slim AS run
COPY --from=build /build /Daysim
Expand Down

0 comments on commit 4c9fa4b

Please sign in to comment.