FROM alpine:3.7 WORKDIR /app RUN go mod init \ && GOOS=linux go build -o docker-ldap-change-password-web-ui main.go ADD docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui ADD static /app/static ADD templates /app/templates RUN chmod +x /app/docker-ldap-change-password-web-ui EXPOSE 8080 ENTRYPOINT [ "/app/docker-ldap-change-password-web-ui" ]