-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (44 loc) · 1.01 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
43
44
45
46
47
48
49
50
# Builder
FROM golang:latest AS builder
WORKDIR /app
COPY . .
RUN go work sync && go mod download
# Ad Server Stage
FROM builder AS adserver
WORKDIR /app
RUN go build -o ./adserver/bin ./adserver
EXPOSE 8081
WORKDIR /app/adserver
CMD ["./adserver/bin"]
# Event Server Stage
FROM builder AS eventservice
WORKDIR /app
RUN go build -o ./eventservice/bin ./eventservice
EXPOSE 8082
WORKDIR /app/eventservice
CMD ["./eventservice/bin"]
# Panel Stage
FROM builder AS panel
WORKDIR /app
RUN go build -o ./panel/bin ./panel
EXPOSE 8085
WORKDIR /app/panel
CMD ["./panel/bin"]
# Publisher Website Stage
FROM builder AS publisherwebsite
WORKDIR /app
RUN go build -o ./publisherwebsite/bin ./publisherwebsite
EXPOSE 8084
WORKDIR /app/publisherwebsite
CMD ["./publisherwebsite/bin"]
FROM builder AS screper
WORKDIR /app
RUN go build -o ./screper/bin ./screper
EXPOSE 8088
WORKDIR /app/screper
CMD ["./screper/bin"]
FROM builder AS reporter
WORKDIR /app
RUN go build -o ./reporter/bin ./reporter
WORKDIR /app/reporter
CMD ["./reporter/bin"]