Pulse/tests/integration/mock-github-server/Dockerfile
2026-04-22 10:12:15 +01:00

18 lines
329 B
Docker

FROM golang:1.23-alpine AS builder
WORKDIR /build
COPY go.mod ./
RUN go mod download
COPY main.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o mock-github-server .
FROM alpine:3.22.1
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /build/mock-github-server .
EXPOSE 8080
CMD ["./mock-github-server"]