Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilanni2460 opened this issue Nov 8, 2024 · 0 comments

Comments

@ilanni2460
Copy link

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

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant