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="" #ENV LDAP_PORT="636" #ENV LDAP_BIND_DN="CN=,CN=Users,DC=,DC=local" #ENV LDAP_BIND_PASSWORD="" #ENV LDAP_BASE_DN="CN=Users,DC=,DC=local" #ENV LDAP_FILTER=(objectClass=person) #ENV SERVER_PORT="8080" CMD ["/app/ldap_phonebook_html"]