Skip to content

Commit

Permalink
Put dependencies in own layer for quicker rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking authored and keithw committed Mar 7, 2023
1 parent 41642d9 commit 4cd0ff1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ WORKDIR /ws
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC

COPY . .

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get update && \
apt-get install -y git g++ cmake ninja-build python3 file && \
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release && \
apt-get install -y git g++ cmake ninja-build python3 file

COPY . .

RUN cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release && \
cmake --build build

0 comments on commit 4cd0ff1

Please sign in to comment.