@ -14,3 +14,5 @@ luxshare-daily-report
*.yml
.DS_Store
app*
@ -1,5 +1,7 @@
FROM alpine:latest
ARG TARGETARCH
RUN mkdir "/app"
WORKDIR "/app"
@ -13,8 +15,10 @@ RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
COPY luxshare-daily-report "/app/luxshare-daily-report"
COPY app* "/app/."
RUN mv app_${TARGETARCH} app
EXPOSE 7201
ENTRYPOINT ["./luxshare-daily-report"]
ENTRYPOINT ["./app"]
@ -1 +1,3 @@
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" .
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app_amd64 -ldflags="-s -w"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o app_arm64 -ldflags="-s -w"