Merge branch 'feature/docker' into develop
This commit is contained in:
commit
2c0904ff1a
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM debian:stable-slim
|
||||
|
||||
RUN apt-get update && apt-get install ca-certificates -y
|
||||
|
||||
COPY ./capture /usr/bin/capture
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["/usr/bin/capture"]
|
6
main.go
6
main.go
|
@ -30,9 +30,9 @@ var dashboardHTML []byte
|
|||
func main() {
|
||||
cfg := ReadConfig()
|
||||
|
||||
fmt.Printf("Target is %s", cfg.TargetURL)
|
||||
fmt.Printf("\nListening on http://localhost:%s", cfg.ProxyPort)
|
||||
fmt.Printf("\nDashboard on http://localhost:%s", cfg.DashboardPort)
|
||||
fmt.Printf("Target is %s\n", cfg.TargetURL)
|
||||
fmt.Printf("Listening on http://127.0.0.1:%s\n", cfg.ProxyPort)
|
||||
fmt.Printf("Dashboard on http://127.0.0.1:%s\n", cfg.DashboardPort)
|
||||
fmt.Println()
|
||||
|
||||
srv := NewCaptureService(cfg.MaxCaptures)
|
||||
|
|
Loading…
Reference in a new issue