File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55RUN go mod download
66RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest .
77
8- FROM alpine:3.10
8+ FROM ubuntu:23.04
99
1010LABEL "com.github.actions.name" ="API testing"
1111LABEL "com.github.actions.description" ="API testing"
1818
1919LABEL "Name" ="API testing"
2020
21- COPY --from=builder /workspace/atest /usr/bin/atest
21+ COPY --from=builder /workspace/atest /usr/local/ bin/atest
2222
23- ENTRYPOINT [ atest, server]
23+ CMD [ " atest" , " server" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ goreleaser:
66 goreleaser build --rm-dist --snapshot
77build-image :
88 docker build -t ghcr.io/linuxsuren/api-testing:dev .
9+ run-image :
10+ docker run ghcr.io/linuxsuren/api-testing:dev
911copy : build
1012 sudo cp bin/atest /usr/local/bin/
1113test :
You can’t perform that action at this time.
0 commit comments