Make sure the Docker image has the git version in it

This commit is contained in:
Quentin Gliech
2024-12-18 18:44:48 +01:00
parent 000657fa32
commit 961dd68005
3 changed files with 7 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ frontend/dist
tools/syn2mas/**
docs/
.devcontainer/
.git/
.github/
.gitignore
Dockerfile

View File

@@ -140,8 +140,7 @@ RUN --network=default \
--package mas-cli
# Build the rest
COPY ./Cargo.toml ./Cargo.lock /app/
COPY ./crates /app/crates
COPY ./ /app
ENV SQLX_OFFLINE=true
# Network access: cargo auditable needs it
RUN --network=default \

View File

@@ -9,6 +9,12 @@ target "docker-metadata-action-syn2mas" {}
// This sets the platforms and is further extended by GitHub Actions to set the
// output and the cache locations
target "base" {
args = {
// This is set so that when we use a git context, the .git directory is
// present, as we infer the version at build time out of it
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
}
platforms = [
"linux/amd64",
"linux/arm64",