Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hq0101 committed Aug 12, 2024
1 parent 9ea8e0d commit 0f04ebf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.20 AS builder

WORKDIR /app

COPY . .

RUN GOOS=linux GOARCH=amd64 go build -o clamd_exporter ./cmd/main.go

FROM alpine:latest

WORKDIR /app

COPY --from=builder /app/clamd_exporter .

EXPOSE 8080

ENTRYPOINT ["./clamd_exporter"]
CMD ["-l", ":8181","-a", "192.168.127.131:3310", "-n", "tcp"]

0 comments on commit 0f04ebf

Please # to comment.