mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-19 12:47:52 +00:00
20 lines
402 B
Docker
20 lines
402 B
Docker
|
FROM ubuntu:22.04 AS build
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get install -y build-essential \
|
||
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
|
||
|
|
||
|
COPY .. .
|
||
|
RUN make
|
||
|
|
||
|
FROM ubuntu:22.04 AS runtime
|
||
|
WORKDIR /app
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get install -y curl ffmpeg \
|
||
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
|
||
|
|
||
|
COPY --from=build /app /app
|
||
|
ENTRYPOINT [ "bash", "-c" ]
|