Skip to content

Commit

Permalink
Include cmd/cluster in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Jul 29, 2024
1 parent 66f830c commit b4e4658
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 b4e4658

Please sign in to comment.