Updated Agent Dockerfile

This commit is contained in:
headlessdev 2025-04-26 16:13:04 +02:00
parent 78c844b1fe
commit cba70d5aef

View File

@ -1,25 +1,25 @@
# --- Build Stage --- # --- Build Stage ---
FROM golang:1.24-alpine AS builder FROM golang:1.19-alpine AS builder
WORKDIR /app WORKDIR /app
ENV GO111MODULE=on ENV GO111MODULE=on
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
RUN go build -o app . RUN go build -o app ./cmd/agent
# --- Run Stage --- # --- Run Stage ---
FROM alpine:latest FROM alpine:latest
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates
WORKDIR /root/ WORKDIR /root/
COPY --from=builder /app/app . COPY --from=builder /app/app .
CMD ["./app"] CMD ["./app"]