Skip to content

Commit 6af21f1

Browse files
committed
fix local dockerfile
1 parent 3f0575b commit 6af21f1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
FROM golang:1.26.1-bookworm AS build
1+
FROM alpine:3.23.3 AS build
22
ARG TARGETARCH
3-
RUN apt-get update && apt-get install -y \
4-
jq \
5-
&& apt-get clean \
6-
&& rm -rf /var/lib/apt/lists/*
7-
COPY src/base/.devcontainer/scripts/install_cosign.sh /tmp/install_cosign.sh
3+
RUN apk add --no-cache cosign bash curl jq
84
COPY src/base/.devcontainer/scripts/install_trivy.sh /tmp/install_trivy.sh
9-
RUN INSTALL_DIR=/usr/local/bin /tmp/install_cosign.sh
105
RUN case "${TARGETARCH}" in \
116
x86_64|amd64) TRIVY_ARCH=64bit ;; \
127
aarch64|arm64) TRIVY_ARCH=ARM64 ;; \

0 commit comments

Comments
 (0)