forked from mlgupta/keyper-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (43 loc) · 1.16 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
FROM alpine:latest AS builder
RUN apk add --no-cache python3 \
py3-yaml \
python3-dev \
bash \
gcc \
musl-dev \
npm \
openssl \
nginx \
openldap \
openldap-dev \
openldap-clients \
openldap-back-mdb \
openldap-overlay-memberof \
openldap-overlay-ppolicy \
openldap-overlay-refint \
openldap-overlay-auditlog \
openldap-back-monitor
COPY modules /container
RUN /container/build_builder.sh
FROM alpine:latest
RUN apk add --no-cache python3 \
py3-yaml \
runit \
bash \
shadow \
openssl \
nginx \
openssh-keygen \
openldap \
openldap-clients \
openldap-back-mdb \
openldap-overlay-memberof \
openldap-overlay-ppolicy \
openldap-overlay-refint \
openldap-overlay-auditlog \
openldap-back-monitor
COPY container /container
COPY --from=builder /container/out.tar.gz /container/out.tar.gz
RUN /container/build.sh
ENTRYPOINT ["/container/tools/run"]
EXPOSE 80 443 389 636