fix the base image (#26)

Co-authored-by: rick <LinuxSuRen@users.noreply.github.com>
This commit is contained in:
Rick 2023-04-04 14:13:16 +08:00 committed by GitHub
parent d8549db1eb
commit 3720aca07f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -5,7 +5,7 @@ COPY . .
RUN go mod download
RUN CGO_ENABLE=0 go build -ldflags "-w -s" -o atest .
FROM alpine:3.10
FROM ubuntu:23.04
LABEL "com.github.actions.name"="API testing"
LABEL "com.github.actions.description"="API testing"
@ -18,6 +18,6 @@ LABEL "maintainer"="Rick <linuxsuren@gmail.com>"
LABEL "Name"="API testing"
COPY --from=builder /workspace/atest /usr/bin/atest
COPY --from=builder /workspace/atest /usr/local/bin/atest
ENTRYPOINT [atest, server]
CMD ["atest", "server"]

View File

@ -6,6 +6,8 @@ goreleaser:
goreleaser build --rm-dist --snapshot
build-image:
docker build -t ghcr.io/linuxsuren/api-testing:dev .
run-image:
docker run ghcr.io/linuxsuren/api-testing:dev
copy: build
sudo cp bin/atest /usr/local/bin/
test: