ci: fix Dockerfile bin location

This commit is contained in:
Eli Yip 2025-05-28 11:03:27 +08:00
parent 929ece2db1
commit 1d1cff4805
No known key found for this signature in database
GPG Key ID: C98B69D4CF7D7EC5
3 changed files with 8 additions and 6 deletions

View File

@ -8,6 +8,8 @@ before:
builds:
- id: dashboard-server
env:
- CGO_ENABLED=0
goos:
- linux
goarch:

View File

@ -17,10 +17,10 @@ WORKDIR /app
COPY --link static/ ./static/
COPY --link --from=builder /app/dashboard-server /usr/local/bin/dashboard-server
COPY --link --from=builder /app/dashboard-server /app/dashboard-server
EXPOSE 9099
ENV SERVER_PORT="9099"
CMD ["dashboard-server"]
CMD ["/app/dashboard-server"]

View File

@ -1,10 +1,10 @@
FROM alpine:3.21
COPY --link dashboard-server /usr/local/bin/dashboard-server
COPY --link static/ ./static/
WORKDIR /app
COPY --link . .
EXPOSE 9099
ENV SERVER_PORT="9099"
ENTRYPOINT ["dashboard-server"]
CMD ["/app/dashboard-server"]