This commit is contained in:
18
Dockerfile
18
Dockerfile
@ -2,23 +2,25 @@ FROM golang:1.23.4 AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
RUN go mod download && go mod verify
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
|
# Copy project files
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
FROM alpine:3.7
|
# Final stage
|
||||||
|
FROM chromedp/headless-shell:latest
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Copy the binary and required files
|
# Copy the binary and required files
|
||||||
COPY --from=builder /app/docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
|
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 static /app/static
|
||||||
ADD templates /app/templates
|
ADD templates /app/templates
|
||||||
|
|
||||||
EXPOSE 8080
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
ENTRYPOINT [ "docker-ldap-change-password-web-ui" ]
|
ENTRYPOINT ["/app/docker-ldap-change-password-web-ui"]
|
Reference in New Issue
Block a user