未验证 提交 aee1b031 编写于 作者: A Alessandro (Ale) Segala 提交者: GitHub

Fix fortio Docker image not building (#6598)

Signed-off-by: NItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
上级 204163e7
FROM golang:1.20 as build_env
FROM golang:1.20-bullseye as build_env
ENV CGO_ENABLED=0
WORKDIR /app
COPY app.go go.mod ./
RUN go get -d -v && go build -o tester .
FROM golang:1.20 as fortio_build_env
FROM golang:1.20-bullseye as fortio_build_env
WORKDIR /fortio
ADD "https://api.github.com/repos/dapr/fortio/branches/v1.38.4-dapr" skipcache
RUN git clone https://github.com/dapr/fortio.git
RUN cd fortio && git checkout v1.38.4-dapr && go build
FROM debian:buster-slim
FROM debian:bullseye-slim
WORKDIR /
COPY --from=build_env /app/tester /
COPY --from=fortio_build_env /fortio/fortio/fortio /usr/local/bin
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册