Skip to content

Commit

Permalink
fix: Using debian:bookwork-slim as base image since we need CA certif…
Browse files Browse the repository at this point in the history
…icates and it will be much more easy to use Debian than "scratch"
  • Loading branch information
jryberg committed Dec 10, 2023
1 parent 50f8372 commit 1211793
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM scratch
LABEL source_repository="https://github.com/jryberg/mosquitto-exporter"

COPY mosquitto-exporter /mosquitto_exporter

EXPOSE 9234

FROM debian:bookworm-slim
LABEL source_repository="https://github.com/jryberg/mosquitto-exporter"
COPY mosquitto-exporter /mosquitto_exporter
RUN apt update && \
apt install -y ca-certificates
EXPOSE 9234
ENTRYPOINT ["/mosquitto_exporter"]
5 changes: 3 additions & 2 deletions Dockerfile.build-simple
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ COPY . .

RUN make build

FROM scratch
FROM debian:bookworm-slim
LABEL source_repository="https://github.com/jryberg/mosquitto-exporter"

COPY --from=build /go/src/app/bin/mosquitto_exporter /mosquitto_exporter

RUN apt update && \
apt install -y ca-certificates
EXPOSE 9234

ENTRYPOINT [ "/mosquitto_exporter" ]

0 comments on commit 1211793

Please sign in to comment.