Fixed incorrect build settings

This commit is contained in:
斟酌 鵬兄 2022-09-15 00:00:45 +08:00
parent f022b237ef
commit 79a873becd

View File

@ -10,11 +10,11 @@ COPY "datasources" "./datasources/"
COPY "utils" "./utils/"
COPY *.go ./
RUN go build -o /golifehkbot
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /golifehkbot
FROM scratch
COPY --from=build /golifehkbot /
WORKDIR /tmp
WORKDIR /
CMD [ "/golifehkbot" ]