Skip to content

Commit 215f874

Browse files
authored
Use busybox image with ADD command (#34)
1 parent 1b7315e commit 215f874

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
FROM --platform=${BUILDPLATFORM} alpine:3 AS tools
1+
FROM --platform=${BUILDPLATFORM} busybox:stable AS tools
22
ARG SQLCMD_VERSION=v1.9.0
33
ARG TARGETARCH
4-
RUN apk add --update-cache --no-cache curl jq xz && \
5-
curl -sSL https://github.com/microsoft/go-sqlcmd/releases/download/${SQLCMD_VERSION}/sqlcmd-linux-${TARGETARCH}.tar.bz2 \
6-
| tar -xj
4+
ADD https://github.com/microsoft/go-sqlcmd/releases/download/${SQLCMD_VERSION}/sqlcmd-linux-${TARGETARCH}.tar.bz2 sqlcmd.tar.bz2
5+
RUN tar -xvf sqlcmd.tar.bz2
76

87
FROM gcr.io/distroless/static:nonroot@sha256:e8a4044e0b4ae4257efa45fc026c0bc30ad320d43bd4c1a7d5271bd241e386d0
98
COPY --from=tools /sqlcmd /sqlcmd

0 commit comments

Comments
 (0)