init
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
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"]
|
Reference in New Issue
Block a user