-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
39 lines (32 loc) · 1021 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
FROM centos:7.8.2003
RUN \
yum install -y \
python \
openssl \
&& \
rm -fr /var/cache/yum && \
useradd -s /sbin/nologin duo
# Use ADD, not COPY, to keep image small.
ADD duoauthproxy.tgz /
COPY harden /usr/sbin/harden
RUN /usr/sbin/harden
RUN mkdir -p /opt/duoauthproxy/log; \
chown -R duo:duo /opt/duoauthproxy/log
VOLUME /opt/duoauthproxy/log
COPY authproxy.cfg /etc/duoauthproxy/authproxy.cfg
USER duo
ENTRYPOINT ["/opt/duoauthproxy/bin/authproxy"]
VOLUME /opt/duoauthproxy/conf/
ARG CI_BUILD_URL
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
io.github.jumanjiman.ci-build-url=$CI_BUILD_URL \
io.github.jumanjiman.version=$VERSION \
io.github.jumanjiman.build-date=$BUILD_DATE \
io.github.jumanjiman.vcs-ref=$VCS_REF \
io.github.jumanjiman.license="MIT" \
io.github.jumanjiman.docker.dockerfile="/runtime/Dockerfile" \
io.github.jumanjiman.vcs-type="Git" \
io.github.jumanjiman.vcs-url="https://github.com/jumanjihouse/docker-duoauthproxy.git"