From 7d226cb851f39e499a205b3e023c0f455f31dfe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 13 Aug 2022 16:30:05 +0800 Subject: [PATCH] =?UTF-8?q?build(oci):=E8=B0=83=E6=95=B4=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f758324..ff32f8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,12 @@ WORKDIR /app COPY go.mod go.sum ./ RUN go mod download && go mod verify ADD . /app -RUN CGO_ENABLED=0 GOOS=linux go build -v -o server . +RUN CGO_ENABLED=0 GOOS=linux go build -tags=jsoniter -v -o server . FROM alpine:latest AS production RUN mkdir /app WORKDIR /app COPY --from=builder /app/server . COPY settings.yaml . +COPY regions.csv . CMD ["./main"] \ No newline at end of file