Skip to content

Commit

Permalink
Merge pull request #96 from ohkinozomu/comqtt-cluster
Browse files Browse the repository at this point in the history
Include cmd/cluster in Dockerfile
  • Loading branch information
wind-c authored Aug 5, 2024
2 parents cfc038f + b7ad976 commit 2ea6541
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,11 @@ RUN go mod download
COPY . ./

RUN go build -o /app/comqtt ./cmd/single

RUN go build -o /app/comqtt-cluster ./cmd/cluster

FROM alpine

WORKDIR /
COPY --from=builder /app/comqtt .

# tcp
EXPOSE 1883

# websockets
EXPOSE 1882

# dashboard
EXPOSE 8080
COPY --from=builder /app/comqtt /app/comqtt-cluster ./

ENTRYPOINT [ "/comqtt" ]

0 comments on commit 2ea6541

Please sign in to comment.