This commit is contained in:
parent
37090ccdc6
commit
78719a6bb1
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM golang:1.18 as builder
|
||||||
|
WORKDIR /build
|
||||||
|
COPY . .
|
||||||
|
RUN CGO_ENABLED=0 GOPROXY=https://proxy.golang.com.cn,direct go build -o demo
|
||||||
|
FROM alpine:3.10 as runner
|
||||||
|
LABEL description="the image is a demo"
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=builder /build/demo /app/
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["./demo"]
|
Loading…
Reference in New Issue
Block a user