Skip to content

Commit 6619794

Browse files
authored
Populate git hash version in Docker build (#192)
1 parent 1a2b334 commit 6619794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
FROM ubuntu:latest AS builder
22

33
RUN apt update && \
4-
apt install -y build-essential cmake clang curl pkg-config libssl-dev
4+
apt install -y build-essential cmake clang curl pkg-config libssl-dev git
55

66
# Install Rust.
77
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
88

99
COPY . /build
10+
COPY .git /build/.git
1011
WORKDIR /build
1112

1213
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

0 commit comments

Comments
 (0)