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 5
5
RUN go mod download
6
6
RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest .
7
7
8
- FROM alpine:3.10
8
+ FROM ubuntu:23.04
9
9
10
10
LABEL "com.github.actions.name" ="API testing"
11
11
LABEL "com.github.actions.description" ="API testing"
18
18
19
19
LABEL "Name" ="API testing"
20
20
21
- COPY --from=builder /workspace/atest /usr/bin/atest
21
+ COPY --from=builder /workspace/atest /usr/local/ bin/atest
22
22
23
- ENTRYPOINT [ atest, server]
23
+ CMD [ " atest" , " server" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ goreleaser:
6
6
goreleaser build --rm-dist --snapshot
7
7
build-image :
8
8
docker build -t ghcr.io/linuxsuren/api-testing:dev .
9
+ run-image :
10
+ docker run ghcr.io/linuxsuren/api-testing:dev
9
11
copy : build
10
12
sudo cp bin/atest /usr/local/bin/
11
13
test :
You can’t perform that action at this time.
0 commit comments