mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-17 23:56:59 +01:00
18 lines
247 B
Docker
18 lines
247 B
Docker
FROM golang:1.25.6-alpine AS builder
|
|
|
|
HEALTHCHECK NONE
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
COPY main.go ./
|
|
|
|
RUN go build -o h2c_test_server main.go
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /src/h2c_test_server /app/run
|
|
|
|
USER 1001:1001
|
|
|
|
CMD ["/app/run"] |