Skip to content

Commit

Permalink
Changed image to golang:1.15-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKorcz committed Nov 24, 2020
1 parent 78bb9ff commit c0c7287
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions hack/dockerfiles/fuzz.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get install wget git software-properties-common build-essential -y
RUN wget https://golang.org/dl/go1.14.9.linux-amd64.tar.gz
RUN tar -xvf go1.14.9.linux-amd64.tar.gz
RUN mv go /usr/local
FROM golang:1.15-alpine
ENV DEBIAN_FRONTEND=noninteractive

RUN mkdir /root/src
ENV GOPATH /root/go
ENV GOROOT /usr/local/go
ENV PATH $PATH:/usr/local/go/bin

RUN go get github.com/moby/buildkit
RUN go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
RUN apk add --no-cache git mercurial \
&& go get -u github.com/dvyukov/go-fuzz/go-fuzz \
github.com/dvyukov/go-fuzz/go-fuzz-build \
github.com/moby/buildkit \
&& apk del git mercurial
COPY fuzz.go /go/src/github.com/moby/buildkit/frontend/dockerfiles/parser/
RUN cd /go/src/github.com/moby/buildkit/frontend/dockerfiles/parser && $GOPATH/bin/go-fuzz-build && $GOPATH/bin/go-fuzz
RUN cd /go/src/github.com/moby/buildkit/frontend/dockerfiles/parser \
&& $GOPATH/bin/go-fuzz-build && $GOPATH/bin/go-fuzz

0 comments on commit c0c7287

Please sign in to comment.