stuzer05 0c0b1d6139
Some checks failed
build docker image / docker-build (push) Failing after 50s
Commit
2025-01-12 15:34:37 +02:00

24 lines
447 B
Docker

FROM golang:1.23.4 AS builder
WORKDIR /app
COPY . .
RUN go mod download && go mod verify
RUN make
FROM alpine:3.7
WORKDIR /app
# Copy the binary and required files
COPY --from=builder /app/docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
RUN chmod +x /app/docker-ldap-change-password-web-ui
ADD static /app/static
ADD templates /app/templates
EXPOSE 8080
ENTRYPOINT [ "/app/docker-ldap-change-password-web-ui" ]