-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CyberRoute/refactorui
adding dockerfile
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM golang:alpine as build-stage | ||
|
||
RUN apk --no-cache add ca-certificates | ||
|
||
WORKDIR /go/src/github.com/CyberRoute/bruter | ||
|
||
COPY . . | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /bruter ./cmd/bruter/*.go | ||
|
||
FROM scratch | ||
|
||
COPY --from=build-stage /bruter /bruter | ||
|
||
ADD pkg/fuzzer/apache-list pkg/fuzzer/apache-list | ||
ADD templates/ templates/ | ||
|
||
EXPOSE 8080 | ||
|
||
ENTRYPOINT ["/bruter"] |
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