mirror of
https://github.com/linuxserver/docker-ldap-auth.git
synced 2026-02-20 01:01:02 +08:00
45 lines
931 B
Docker
45 lines
931 B
Docker
FROM lsiobase/alpine.arm64:3.8
|
|
|
|
# Add qemu to run on x86_64 systems
|
|
COPY qemu-aarch64-static /usr/bin
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG LDAP_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="aptalca"
|
|
|
|
RUN \
|
|
echo "**** install build packages ****" && \
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
build-base \
|
|
libffi-dev \
|
|
openldap-dev \
|
|
python2-dev && \
|
|
echo "**** install runtime packages ****" && \
|
|
apk add --no-cache \
|
|
libffi \
|
|
libldap \
|
|
py2-pip \
|
|
python2 && \
|
|
if [ -z ${LDAP_VERSION+x} ]; then \
|
|
LDAP_INSTALL="python-ldap"; \
|
|
else \
|
|
LDAP_INSTALL="python-ldap==${LDAP_VERSION}"; \
|
|
fi && \
|
|
pip install -U --no-cache-dir \
|
|
cryptography \
|
|
${LDAP_INSTALL} && \
|
|
echo "**** cleanup ****" && \
|
|
apk del --purge \
|
|
build-dependencies && \
|
|
rm -rf \
|
|
/tmp/*
|
|
|
|
# copy local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 8888 9000
|