spoticord/Dockerfile.metrics

23 lines
502 B
Docker
Raw Normal View History

2023-03-03 09:03:57 +00:00
# Builder
FROM rust:1.65-buster as builder
2023-03-03 09:03:57 +00:00
WORKDIR /app
# Add extra build dependencies here
RUN apt-get update && apt-get install -y cmake
COPY . .
RUN cargo install --path . --features metrics
# Runtime
FROM debian:buster-slim
WORKDIR /app
# Add extra runtime dependencies here
RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
# Copy spoticord binary from builder
COPY --from=builder /usr/local/cargo/bin/spoticord ./spoticord
CMD ["./spoticord"]