Skip to content

Commit b1f157e

Browse files
committed
fix local build
1 parent 859aa7a commit b1f157e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM golang:1.26.1-bookworm AS build
2+
ARG TARGETARCH
23
RUN apt-get update && apt-get install -y \
34
jq \
45
&& apt-get clean \
56
&& rm -rf /var/lib/apt/lists/*
67
COPY src/base/.devcontainer/scripts/install_cosign.sh /tmp/install_cosign.sh
78
COPY src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
9+
RUN INSTALL_DIR=/usr/local/bin /tmp/install_cosign.sh
810
RUN case "${TARGETARCH}" in \
911
x86_64|amd64) TRIVY_ARCH=64bit ;; \
1012
aarch64|arm64) TRIVY_ARCH=ARM64 ;; \

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"source=${env:HOME}${env:USERPROFILE}/.aws,target=/home/vscode/.aws,type=bind",
1313
"source=${env:HOME}${env:USERPROFILE}/.ssh,target=/home/vscode/.ssh,type=bind",
1414
"source=${env:HOME}${env:USERPROFILE}/.gnupg,target=/home/vscode/.gnupg,type=bind",
15-
"source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind"
15+
"source=${env:HOME}${env:USERPROFILE}/.npmrc,target=/home/vscode/.npmrc,type=bind",
16+
"source=${env:HOME}${env:USERPROFILE}/.gitconfig,target=/home/vscode/.gitconfig,type=bind"
1617
],
1718
"runArgs": [
1819
"--network=host"

0 commit comments

Comments
 (0)