update Dockerfile.

Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
PandaX
2024-11-12 08:04:27 +00:00
committed by Gitee
parent b5d2c66731
commit 157f604ee7

View File

@@ -1,15 +1,11 @@
FROM golang:1.23.0-alpine AS builder
WORKDIR /app
COPY . .
RUN go env -w GOPROXY=https://goproxy.cn,direct && go mod download
RUN go build -o pandax
FROM alpine:latest
LABEL MAINTAINER="PandaX"