mirror of
https://github.com/projectdiscovery/httpx.git
synced 2024-09-11 17:46:08 +03:00
Merge pull request #10 from projectdiscovery/feature-docker
adding docker
This commit is contained in:
commit
1936688f94
17
.github/workflows/dockerhub-push.yml
vendored
Normal file
17
.github/workflows/dockerhub-push.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# dockerhub-push pushes docker build to dockerhub automatically
|
||||||
|
# on the creation of a new release
|
||||||
|
name: Publish to Dockerhub on creation of a new release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
- name: Publish to Dockerhub Registry
|
||||||
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
|
with:
|
||||||
|
name: projectdiscovery/httpx
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM golang:1.14-alpine AS build-env
|
||||||
|
|
||||||
|
RUN apk add --no-cache --upgrade git openssh-client ca-certificates
|
||||||
|
RUN go get -u github.com/golang/dep/cmd/dep
|
||||||
|
WORKDIR /go/src/app
|
||||||
|
|
||||||
|
# Install
|
||||||
|
RUN go get -u github.com/projectdiscovery/httpx/cmd/httpx
|
||||||
|
|
||||||
|
ENTRYPOINT ["httpx"]
|
Loading…
Reference in New Issue
Block a user