-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
36 lines (21 loc) · 739 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM golang:1.13.1-alpine as build
RUN apk add --update \
git \
&& rm -rf /var/cache/apk/*
RUN wget -O /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 && chmod +x /usr/local/bin/dep
WORKDIR /go/src/github.com/kgretzky/evilginx2
COPY go.mod go.sum ./
ENV GO111MODULE on
RUN go mod download
COPY . /go/src/github.com/kgretzky/evilginx2
RUN go build -o ./bin/evilginx main.go
FROM alpine:3.8
RUN apk add --update \
ca-certificates \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=build /go/src/github.com/kgretzky/evilginx2/bin/evilginx /app/evilginx
COPY ./phishlets/*.yaml /app/phishlets/
VOLUME ["/app/phishlets/"]
EXPOSE 443 80 53/udp
ENTRYPOINT ["/app/evilginx"]