Skip to content

Commit

Permalink
feat: include .git file during build so we have git commit as version (
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhani-cw authored Jun 17, 2024
1 parent 3e21bfe commit 53892fa
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
**

# Except these files and directories
!docker/
!docker/Dockerfile.run_with_importer
!src/
!.cargo/
!config/
!Cargo.toml
!Cargo.lock
!static/
!.git
!.sqlx/
!build.rs
!proto
!Cargo.lock
!Cargo.toml
!config/
!docker/
!docker/Dockerfile.run_with_importer
!src/
!static/
1 change: 1 addition & 0 deletions docker/Dockerfile.run_relayer
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM rust:1.75 as builder

WORKDIR /app
COPY .git /app/.git
COPY build.rs /app/build.rs
COPY src /app/src
COPY static /app/static
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.run_stratus
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM rust:1.75 as builder

WORKDIR /app
COPY .git /app/.git
COPY build.rs /app/build.rs
COPY src /app/src
COPY static /app/static
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.run_with_importer
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM rust:1.75 as builder

WORKDIR /app
COPY .git /app/.git
COPY build.rs /app/build.rs
COPY src /app/src
COPY static /app/static
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.run_with_importer_cached
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
RUN rm -rf src

# Copy the actual source code
COPY .git /app/.git
COPY build.rs /app/build.rs
COPY src /app/src
COPY static /app/static
Expand Down

0 comments on commit 53892fa

Please sign in to comment.