Skip to content

Optimize the dockerfile file and add the function of customizing the ldif file #86

@ilanni2460

Description

@ilanni2460

Optimize the dockerfile file and add the function of customizing the ldif file

`
FROM gcr.io/distroless/java:8
MAINTAINER Josef (kwart) Cacek [email protected]

COPY target/ldap-server.jar /ldap-server.jar

ENV LDIF_FILE=/ldap-server-users.ldif

COPY users.ldif /ldap-server-users.ldif

EXPOSE 389 636

ENTRYPOINT ["/usr/bin/java", "-jar", "/ldap-server.jar"]
CMD ["-a", "-p", "389", "-sp", "636", "-b", "0.0.0.0", "${LDIF_FILE}"]

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions