20 lines
547 B
Docker
20 lines
547 B
Docker
FROM golang:1.21-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir -p static/css && mkdir -p static/images && go mod init ldap_phonebook_html
|
|
COPY *.go .
|
|
#COPY static static
|
|
RUN go mod tidy && go mod download && go build -o ldap_phonebook_html /app
|
|
|
|
#ENV LDAP_SERVER="<Server>"
|
|
#ENV LDAP_PORT="636"
|
|
#ENV LDAP_BIND_DN="CN=<User>,CN=Users,DC=<example>,DC=local"
|
|
#ENV LDAP_BIND_PASSWORD="<password>"
|
|
#ENV LDAP_BASE_DN="CN=Users,DC=<example>,DC=local"
|
|
#ENV LDAP_FILTER=(objectClass=person)
|
|
#ENV SERVER_PORT="8080"
|
|
|
|
|
|
CMD ["/app/ldap_phonebook_html"]
|