2024-01-05 22:12:34 +00:00
|
|
|
FROM rust:alpine AS builder
|
2023-05-01 23:45:55 +00:00
|
|
|
WORKDIR /usr/src/empede
|
|
|
|
RUN apk add --no-cache build-base
|
|
|
|
COPY ./src ./src
|
|
|
|
COPY ./templates ./templates
|
2024-01-05 22:12:34 +00:00
|
|
|
COPY ./Cargo.toml ./Cargo.lock ./
|
2023-05-01 23:45:55 +00:00
|
|
|
RUN cargo install --path .
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /usr/local/cargo/bin/empede ./
|
|
|
|
COPY ./static ./static
|
|
|
|
|
|
|
|
ARG MPD_HOST
|
|
|
|
ARG MPD_PORT
|
|
|
|
ARG EMPEDE_BIND
|
|
|
|
|
|
|
|
CMD ["./empede"]
|