13 lines
181 B
Docker
13 lines
181 B
Docker
|
FROM golang:1.23 AS build
|
||
|
|
||
|
COPY . /build
|
||
|
WORKDIR /build
|
||
|
|
||
|
RUN CGO_ENABLED=0 go build -o /build/app
|
||
|
|
||
|
FROM scratch
|
||
|
COPY --from=build /build/app /app
|
||
|
|
||
|
EXPOSE 5000
|
||
|
|
||
|
ENTRYPOINT [ "/app" ]
|