diff --git a/docker/Dockerfile b/docker/Dockerfile index dae6401..e5b1055 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,31 +6,32 @@ LABEL org.opencontainers.image.title="Silero TTS API server" LABEL org.opencontainers.image.description="This is a simple server that uses Silero models to convert text to audio files over HTTP" LABEL org.opencontainers.image.vendor="TwirApp" +# Install all dependencies from requirements.lock FROM base as dependencies-installer WORKDIR /app -SHELL ["/bin/bash", "-c"] -RUN apt-get -y update && apt-get -y install curl && \ +RUN <&2 + FROM base WORKDIR /app -COPY --from=models-installer /models /app/models +COPY --from=models-installer /models models COPY --from=dependencies-installer /app/.venv .venv ENV PATH=/app/.venv/bin:$PATH -COPY /app ./app -COPY /tts ./tts +COPY ./app app +COPY ./tts tts CMD ["litestar", "run", "--host", "0.0.0.0", "--port", "8000"]