-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (20 loc) · 1.25 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
FROM golang:1.22-alpine as builder
ENV CGO_ENABLED=0
RUN apk add --no-cache --update make git
RUN mkdir /app
WORKDIR /app
# Copy the source from the current directory to the Working Directory inside the container
COPY . .
RUN make
FROM alpine:3.20
#we need timezone database
RUN apk add --no-cache --update tzdata
COPY --from=builder /app/bin/notifications /
COPY --from=builder /app/driver/web/docs/gen/def.yaml /driver/web/docs/gen/def.yaml
COPY --from=builder /app/driver/web/client_permission_policy.csv /driver/web/client_permission_policy.csv
COPY --from=builder /app/driver/web/admin_permission_policy.csv /driver/web/admin_permission_policy.csv
COPY --from=builder /app/driver/web/bbs_permission_policy.csv /driver/web/bbs_permission_policy.csv
COPY --from=builder /app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_scope.conf /app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_scope.conf
COPY --from=builder /app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_string.conf /app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_string.conf
COPY --from=builder /etc/passwd /etc/passwd
ENTRYPOINT ["/notifications"]