spoticord/Dockerfile

25 lines
520 B
Docker
Raw Normal View History

2022-10-31 21:46:34 +00:00
# Builder
2023-01-27 14:23:47 +00:00
FROM rust:1.64-buster as builder
2022-10-31 21:46:34 +00:00
WORKDIR /app
# Add extra build dependencies here
RUN apt-get update && apt-get install -y cmake
COPY . .
RUN cargo install --path .
# 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
ENV TOKIO_CONSOLE_BIND=0.0.0.0:4567
2022-10-31 21:46:34 +00:00
CMD ["./spoticord"]