Skip to content

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

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 josef.cacek@gmail.com

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}"]

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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