forked from sundowndev/phoneinfoga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (25 loc) · 860 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
37
38
39
40
41
42
43
FROM node:12.16-alpine AS client_builder
WORKDIR /app
COPY ./client .
RUN yarn
RUN yarn build
FROM golang:1.14-alpine as go_builder
LABEL maintainer="Sundowndev" \
org.label-schema.name="phoneinfoga" \
org.label-schema.description="Advanced information gathering & OSINT tool for phone numbers." \
org.label-schema.url="https://github.com/sundowndev/PhoneInfoga" \
org.label-schema.vcs-url="https://github.com/sundowndev/PhoneInfoga" \
org.label-schema.vendor="Sundowndev" \
org.label-schema.schema-version="1.0"
WORKDIR /app
COPY . .
RUN go get -v -t -d ./...
COPY --from=client_builder /app/dist ./client/dist
RUN go get -u github.com/gobuffalo/packr/v2/packr2
RUN packr2
RUN go build -v -o phoneinfoga .
FROM golang:1.14-alpine
WORKDIR /app
COPY --from=go_builder /app/phoneinfoga .
EXPOSE 5000
ENTRYPOINT ["/app/phoneinfoga"]