livebox-exporter/Dockerfile

13 lines
273 B
Docker
Raw Normal View History

2021-11-13 19:36:28 +01:00
# Build stage
FROM golang:1.17-alpine AS build
WORKDIR /app
COPY . .
RUN go build -o /livebox-exporter
# Final image
FROM alpine:3.14
WORKDIR /
COPY --from=build /livebox-exporter /usr/local/bin/livebox-exporter
EXPOSE 8080
USER 10001:10001
ENTRYPOINT ["livebox-exporter"]