-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (24 loc) · 1.63 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
FROM golang:1.21-alpine as builder
ENV CGO_ENABLED=1
RUN apk add --no-cache --update libwebp-dev make gcc g++ git
RUN mkdir /content-app
WORKDIR /content-app
# Copy the source from the current directory to the Working Directory inside the container
COPY . .
RUN make
FROM alpine:3.17.2
#we need timezone database
RUN apk add --no-cache tzdata
RUN apk update && \
apk upgrade -U && \
apk add ca-certificates ffmpeg libwebp libwebp-tools libwebp-dev
COPY --from=builder /content-app/bin/content /
COPY --from=builder /content-app/driver/web/docs/gen/def.yaml /driver/web/docs/gen/def.yaml
COPY --from=builder /content-app/driver/web/authorization_model.conf /driver/web/authorization_model.conf
COPY --from=builder /content-app/driver/web/authorization_policy.csv /driver/web/authorization_policy.csv
COPY --from=builder /content-app/driver/web/authorization_bbs_permission_policy.csv /driver/web/authorization_bbs_permission_policy.csv
COPY --from=builder /content-app/driver/web/authorization_tps_permission_policy.csv /driver/web/authorization_tps_permission_policy.csv
COPY --from=builder /content-app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_scope.conf /content-app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_scope.conf
COPY --from=builder /content-app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_string.conf /content-app/vendor/github.com/rokwire/core-auth-library-go/v2/authorization/authorization_model_string.conf
COPY --from=builder /etc/passwd /etc/passwd
ENTRYPOINT ["/content"]