Skip to content

Commit

Permalink
Merge pull request #8 from ehazlett/alpine
Browse files Browse the repository at this point in the history
Use alpine for image
  • Loading branch information
nerdalert authored Feb 22, 2023
2 parents 5cc1c43 + bafe6d1 commit b7cd119
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM golang
FROM golang:alpine as build
COPY . /src
WORKDIR /src
RUN go build -v .

FROM alpine:latest
MAINTAINER Brent Salisbury <brent.salisbury@gmail.com>

ADD . /go/src/github.com/nerdalert/nflow-generator

WORKDIR /etc/nflow
COPY . .
RUN go build .

ENTRYPOINT ["/etc/nflow/nflow-generator"]
COPY --from=build /src/nflow-generator /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/nflow-generator"]

0 comments on commit b7cd119

Please sign in to comment.