Use debian for docker container

This commit is contained in:
Alex Page 2021-09-26 01:12:21 -04:00
parent b91d3acc31
commit ce79f8e44a

View file

@ -1,10 +1,10 @@
FROM rust:1.55-alpine3.14 as builder
RUN apk add --no-cache musl-dev opus-dev
FROM rust:1.55 as builder
RUN apt-get update && apt-get install -y libopus-dev
WORKDIR /usr/src/myapp
COPY . .
RUN cargo install --path .
FROM alpine:3.14
RUN apk add --no-cache ffmpeg youtube-dl
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y ffmpeg youtube-dl
COPY --from=builder /usr/local/cargo/bin/dj-kitty-cat /usr/local/bin/dj-kitty-cat
CMD ["dj-kitty-cat"]