forked from sundowndev/phoneinfoga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (25 loc) · 1.03 KB
/
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
FROM node:15.3.0-alpine AS client_builder
WORKDIR /app
COPY ./client .
RUN yarn install --ignore-scripts
RUN yarn build
FROM golang:1.15-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 apk add git
RUN go get -v -t -d ./...
COPY --from=client_builder /app/dist ./client/dist
RUN go generate ./...
RUN go build -v -ldflags="-s -w -X 'gopkg.in/sundowndev/phoneinfoga.v2/config.Version=$(git describe --abbrev=0 --tags)' -X 'gopkg.in/sundowndev/phoneinfoga.v2/config.Commit=$(git rev-parse --short HEAD)'" -v -o phoneinfoga .
FROM golang:1.15-alpine
WORKDIR /app
COPY --from=go_builder /app/phoneinfoga .
EXPOSE 5000
ENTRYPOINT ["/app/phoneinfoga"]