Commit
Some checks failed
build docker image / docker-build (push) Failing after 34s

This commit is contained in:
2025-01-12 15:33:46 +02:00
parent 32f32eedfb
commit ee22938742

View File

@ -1,14 +1,23 @@
FROM golang:1.23.2 AS builder
WORKDIR /app
COPY . .
RUN go mod download && go mod verify
RUN make
FROM alpine:3.7 FROM alpine:3.7
WORKDIR /app WORKDIR /app
RUN go mod init \ # Copy the binary and required files
&& GOOS=linux go build -o docker-ldap-change-password-web-ui main.go 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 docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
ADD static /app/static ADD static /app/static
ADD templates /app/templates ADD templates /app/templates
RUN chmod +x /app/docker-ldap-change-password-web-ui
EXPOSE 8080 EXPOSE 8080