Update Dockerfile
This commit is contained in:
parent
7bd2ba7b54
commit
7759b53297
@ -1,13 +1,9 @@
|
|||||||
# build stage
|
|
||||||
FROM golang:1.25-alpine AS build
|
FROM golang:1.25-alpine AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -trimpath -ldflags "-s -w" -o /out/telemetry-ingest ./main.go
|
RUN go build -trimpath -ldflags "-s -w" -o /out/telemetry-ingest .
|
||||||
|
|
||||||
# runtime stage
|
|
||||||
FROM alpine:3.23
|
FROM alpine:3.23
|
||||||
RUN adduser -D -H -s /sbin/nologin app
|
|
||||||
USER app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /out/telemetry-ingest /app/telemetry-ingest
|
COPY --from=build /out/telemetry-ingest /app/telemetry-ingest
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user