From fe6241f10956db9037cedb768b55e32efc4dc26d Mon Sep 17 00:00:00 2001 From: Sijmen Date: Tue, 2 May 2023 01:45:55 +0200 Subject: [PATCH] Add Dockerfile --- .dockerignore | 1 + Dockerfile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9f97022 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..46bda77 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM rust:1.69-alpine as builder +WORKDIR /usr/src/empede +RUN apk add --no-cache build-base +COPY ./src ./src +COPY ./templates ./templates +COPY ./Cargo.* ./ +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"]