2023-10-19 20:19:59 +02:00
|
|
|
FROM golang:1.21-alpine3.18 AS builder
|
2023-02-10 22:47:58 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2023-06-21 23:29:41 +02:00
|
|
|
RUN go build -o /go/bin/immich-exporter ./src
|
2023-02-10 22:47:58 +01:00
|
|
|
|
2023-06-21 23:29:41 +02:00
|
|
|
|
|
|
|
FROM alpine:3.18
|
2023-02-10 22:47:58 +01:00
|
|
|
|
|
|
|
COPY --from=builder /go/bin/immich-exporter /go/bin/immich-exporter
|
2023-02-13 18:18:09 +01:00
|
|
|
COPY package.json /go/bin/
|
2023-02-10 22:47:58 +01:00
|
|
|
|
2023-02-13 18:18:09 +01:00
|
|
|
WORKDIR /go/bin
|
2023-06-21 23:29:41 +02:00
|
|
|
|
|
|
|
CMD ["/go/bin/immich-exporter"]
|