Make sure the Docker image has the git version in it
This commit is contained in:
@@ -6,7 +6,6 @@ frontend/dist
|
||||
tools/syn2mas/**
|
||||
docs/
|
||||
.devcontainer/
|
||||
.git/
|
||||
.github/
|
||||
.gitignore
|
||||
Dockerfile
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user