empede/Dockerfile
Sijmen 2768cbe2af
Some checks reported errors
continuous-integration/drone/push Build was killed
Do a couple small Dockerfile improvements
2024-01-05 23:12:39 +01:00

18 lines
361 B
Docker

FROM rust:alpine AS builder
WORKDIR /usr/src/empede
RUN apk add --no-cache build-base
COPY ./src ./src
COPY ./templates ./templates
COPY ./Cargo.toml ./Cargo.lock ./
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"]