Skip to content

Commit 67f0502

Browse files
committed
fix the base image
1 parent d8549db commit 67f0502

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . .
55
RUN go mod download
66
RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest .
77

8-
FROM alpine:3.10
8+
FROM ubuntu:23.04
99

1010
LABEL "com.github.actions.name"="API testing"
1111
LABEL "com.github.actions.description"="API testing"
@@ -18,6 +18,6 @@ LABEL "maintainer"="Rick <[email protected]>"
1818

1919
LABEL "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"]

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ goreleaser:
66
goreleaser build --rm-dist --snapshot
77
build-image:
88
docker build -t ghcr.io/linuxsuren/api-testing:dev .
9+
run-image:
10+
docker run ghcr.io/linuxsuren/api-testing:dev
911
copy: build
1012
sudo cp bin/atest /usr/local/bin/
1113
test:

0 commit comments

Comments
 (0)