-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update makefile & dockerfiles for new structure
- Loading branch information
Showing
5 changed files
with
66 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM golang:1.18 AS build | ||
|
||
WORKDIR /fuzzer | ||
WORKDIR /src | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
COPY . /fuzzer | ||
RUN make build | ||
COPY . /src | ||
RUN make cnfuzz | ||
|
||
FROM scratch AS final | ||
COPY --from=build /fuzzer/dist/cnfuzz / | ||
EXPOSE 8080 | ||
COPY --from=build /src/dist/cnfuzz / | ||
ENTRYPOINT ["/cnfuzz"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM golang:1.18 AS build | ||
|
||
WORKDIR /wrapper | ||
WORKDIR /src | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
RUN go mod download | ||
|
||
COPY . /wrapper | ||
COPY . /src | ||
RUN make restlerwrapper | ||
|
||
FROM mcr.microsoft.com/restlerfuzzer/restler:v8.6.0 as final | ||
COPY --from=build /wrapper/dist/restlerwrapper / | ||
COPY --from=build /src/dist/restlerwrapper / | ||
COPY src/cmd/restlerwrapper/auth.py /scripts/auth.py | ||
ENTRYPOINT ["/restlerwrapper"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM scratch | ||
COPY dist/restlerwrapper / | ||
ENTRYPOINT ["/restlerwrapper"] |