Fix for Dockerfile smell DL3006 (#183)

Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
This commit is contained in:
Giovanni Rosa
2023-04-13 11:31:30 +08:00
committed by GitHub
parent e9f340c38f
commit c083b83f3d
+1 -1
View File
@@ -4,7 +4,7 @@ COPY . .
RUN CGO_ENABLED=0 go build -o hmq -a -ldflags '-extldflags "-static"' . RUN CGO_ENABLED=0 go build -o hmq -a -ldflags '-extldflags "-static"' .
FROM alpine FROM alpine:3.17.3
WORKDIR / WORKDIR /
COPY --from=builder /go/src/github.com/fhmq/hmq/hmq . COPY --from=builder /go/src/github.com/fhmq/hmq/hmq .
EXPOSE 1883 EXPOSE 1883