-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 987 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
FROM golang:alpine AS build-gateway
LABEL maintainer Ascensio System SIA <[email protected]>
WORKDIR /usr/src/app
COPY . .
RUN go build services/gateway/main.go
FROM golang:alpine AS build-auth
LABEL maintainer Ascensio System SIA <[email protected]>
WORKDIR /usr/src/app
COPY . .
RUN go build services/auth/main.go
FROM golang:alpine AS build-callback
LABEL maintainer Ascensio System SIA <[email protected]>
WORKDIR /usr/src/app
COPY . .
RUN go build services/callback/main.go
FROM golang:alpine AS gateway
WORKDIR /usr/src/app
COPY --from=build-gateway \
/usr/src/app/main \
/usr/src/app/main
EXPOSE 4044
CMD ["./main", "server"]
FROM golang:alpine AS auth
WORKDIR /usr/src/app
COPY --from=build-auth \
/usr/src/app/main \
/usr/src/app/main
EXPOSE 5069
CMD ["./main", "server"]
FROM golang:alpine AS callback
WORKDIR /usr/src/app
COPY --from=build-callback \
/usr/src/app/main \
/usr/src/app/main
EXPOSE 5044
CMD ["./main", "server"]