Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -18,6 +18,6 @@ LABEL "maintainer"="Rick <[email protected]>"

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"]
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down