File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Top Open diff view settings Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Top Open diff view settings Original file line number Diff line number Diff line change 1+ # Build image (Golang)
2+ FROM golang:alpine AS build-stage
3+ ENV GO111MODULE on
4+ ENV CGO_ENABLED 0
5+
6+ RUN apk add --no-cache gcc git make
7+
8+ WORKDIR /src
9+ ADD . .
10+
11+ RUN go mod download
12+ RUN go build -ldflags="-s -w" -o cercat
13+
14+ # Final Docker image
15+ FROM alpine AS final-stage
16+ LABEL MAINTAINER "Thomas Labarussias <issif+github@gadz.org>"
17+
18+ RUN apk add --no-cache ca-certificates
19+
20+ # Create user falcosidekick
21+ RUN addgroup -S cercat && adduser -u 1234 -S cercat -G cercat
22+ USER 1234
23+
24+ WORKDIR ${HOME}/
25+ COPY --from=build-stage /src/cercat .
26+
27+ EXPOSE 2801
28+
29+ ENTRYPOINT ["./cercat" ]
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func main() {
6868 _ , msg , err := ws .ReadMessage ()
6969 if err != nil {
7070 log .Println ("[ERROR] : Error reading message" )
71- continue
71+ break
7272 }
7373 msgChan <- msg
7474 }
You can’t perform that action at this time.
0 commit comments