woodpecker-config-service/Dockerfile

22 lines
410 B
Docker
Raw Permalink Normal View History

2023-07-06 16:46:53 +02:00
# syntax=docker/dockerfile:1
2023-07-18 11:07:28 +02:00
FROM golang:1.20.5-alpine AS build-stage
2023-07-06 16:46:53 +02:00
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /woodpecker-config-service
2023-07-18 11:07:28 +02:00
FROM gcr.io/distroless/base-debian11 AS build-release-stage
WORKDIR /
COPY --from=build-stage /woodpecker-config-service /woodpecker-config-service
2023-07-06 16:46:53 +02:00
EXPOSE 8000
CMD ["/woodpecker-config-service"]