Skip to content

Commit

Permalink
Build/dockerfile update (#47)
Browse files Browse the repository at this point in the history
* dockerfile size of image from 400Mi to 21.3Mi

* RUN to ENTRYPOINT
  • Loading branch information
pstrobl96 authored Dec 6, 2023
1 parent 1891318 commit 096a5f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM golang:1.20-alpine
FROM golang:1.20.3-alpine AS builder

WORKDIR /app

Expand All @@ -13,6 +13,10 @@ COPY *.go ./

RUN go build -o /prusa_exporter

FROM alpine:latest

COPY --from=builder /prusa_exporter .

EXPOSE 10009

CMD [ "/prusa_exporter" ]
ENTRYPOINT ["/prusa_exporter"]

0 comments on commit 096a5f6

Please sign in to comment.