Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry authored Jan 4, 2024
1 parent ddcd6a4 commit 9ea226f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ WORKDIR /root
COPY . /root

RUN go mod tidy && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o alertEventMgr ./main.go && \
chmod 777 alertEventMgr
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o watchAlert ./main.go && \
chmod 777 watchAlert

FROM registry.js.design/base/alpine:3.16

RUN mkdir -p /app/{config,web}
RUN mkdir -p /app/config /app/web

COPY ./web /app/web

COPY --from=build /root/alertEventMgr /app/alertEventMgr
COPY --from=build /root/watchAlert /app/watchAlert

WORKDIR /app

ENTRYPOINT ["/app/alertEventMgr"]
ENTRYPOINT ["/app/watchAlert"]

0 comments on commit 9ea226f

Please sign in to comment.