From b3e1fa6e3ee1df74b4627778991414a30756eea1 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 1 Jun 2020 13:30:01 +0200 Subject: [PATCH] Prometheus: Don't use WORKDIR $SRC (#3908) This makes build_fuzzers work with local checkouts. Without this, it complains with 'Cannot use local checkout with "WORKDIR /src".' Signed-off-by: Julien Pivotto --- projects/prometheus/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/prometheus/Dockerfile b/projects/prometheus/Dockerfile index 726f3a460..0d2326bcc 100644 --- a/projects/prometheus/Dockerfile +++ b/projects/prometheus/Dockerfile @@ -18,4 +18,5 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER julius.volz@gmail.com RUN go get github.com/prometheus/prometheus/cmd/... COPY build.sh $SRC/ -WORKDIR $SRC/ +RUN mkdir $SRC/prometheus/ +WORKDIR $SRC/prometheus/