Add Dockerfile
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sijmen 2023-05-02 01:45:55 +02:00
parent 860c66943c
commit fe6241f109
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
2 changed files with 19 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
target/

18
Dockerfile Normal file
View File

@ -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"]