Skip to content

Commit

Permalink
ci: update installation of github.com/ahmetb/go-httpbin/cmd/httpbin
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Mar 15, 2024
1 parent efbe726 commit 0626a14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- name: Build docker
run: docker build -t httpbin .
- name: Run docker
run: docker run -d -p 8081:80 httpbin
run: docker run -d --rm -p 8081:80 httpbin
- name: tests
run: composer test
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM golang:1.9-alpine3.7
FROM golang:1.22-alpine

RUN apk --update add git
RUN go get github.com/ahmetb/go-httpbin/cmd/httpbin
RUN go install github.com/ahmetb/go-httpbin/cmd/httpbin@latest

CMD ["bin/httpbin","-host",":80"]

0 comments on commit 0626a14

Please sign in to comment.