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 <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2020-06-01 13:30:01 +02:00 committed by GitHub
parent 2f1d2ed756
commit b3e1fa6e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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/