Merge branch 'feature/docker' into develop

This commit is contained in:
Simon Vieille 2023-06-06 13:39:54 +02:00
commit 2c0904ff1a
2 changed files with 12 additions and 3 deletions

9
Dockerfile Normal file
View 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"]

View file

@ -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)