diff --git a/Dockerfile b/Dockerfile index b474659..cc45c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,8 @@ WORKDIR /build COPY . . COPY --from=webBuilder /build/dist ./web/dist -RUN go mod tidy \ +RUN go env -w CGO_ENABLED=0 \ + && go mod tidy \ && go build -o dypid FROM alpine:latest @@ -27,9 +28,7 @@ RUN apk update \ && apk add --no-cache tzdata \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ - && apk del tzdata - -RUN date -R \ + && apk del tzdata \ && chmod +x /dypid ENTRYPOINT [ "/dypid" ] \ No newline at end of file