immich-exporter/Dockerfile
martin f3eb2cef68
initial commit
Signed-off-by: martin <martin.labat92@gmail.com>
2023-02-10 22:47:58 +01:00

14 lines
260 B
Docker

FROM golang:1.19-alpine3.17 AS builder
WORKDIR /app
COPY . .
RUN go get -d -v ./src/ && \
go build -o /go/bin/immich-exporter ./src
FROM alpine:3.17
COPY --from=builder /go/bin/immich-exporter /go/bin/immich-exporter
CMD ["/go/bin/immich-exporter"]