Merge pull request #595 from avelino/avelino/issue-594

docker: add ca-certificates package
This commit is contained in:
Anmol Sethi 2023-01-24 00:12:03 -08:00 committed by GitHub
commit 5abde05b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,9 @@ FROM debian:latest
ARG TARGETARCH ARG TARGETARCH
RUN apt-get update && \
apt-get install -y ca-certificates
COPY ./d2-*-linux-$TARGETARCH.tar.gz /tmp COPY ./d2-*-linux-$TARGETARCH.tar.gz /tmp
RUN mkdir -p /usr/local/lib/d2 \ RUN mkdir -p /usr/local/lib/d2 \
&& tar -C /usr/local/lib/d2 -xzf /tmp/d2-*-linux-"$TARGETARCH".tar.gz \ && tar -C /usr/local/lib/d2 -xzf /tmp/d2-*-linux-"$TARGETARCH".tar.gz \

View file

@ -1,7 +1,7 @@
FROM debian:10 FROM debian:10
RUN apt-get update RUN apt-get update
RUN apt-get install -y curl RUN apt-get install -y curl ca-certificates
ARG GOVERSION= ARG GOVERSION=
RUN curl -fsSL "https://go.dev/dl/go$GOVERSION.tar.gz" >/tmp/go.tar.gz RUN curl -fsSL "https://go.dev/dl/go$GOVERSION.tar.gz" >/tmp/go.tar.gz