9 lines
133 B
Docker
9 lines
133 B
Docker
|
FROM golang:1.22 as build-stage
|
||
|
|
||
|
WORKDIR /app
|
||
|
ENV GOPROXY https://goproxy.cn,direct
|
||
|
|
||
|
COPY . .
|
||
|
RUN go build -o app .
|
||
|
|
||
|
CMD ["/app/app"]
|