tts-voice-creator-clone-and.../docker/Dockerfile.test
2026-10-06 11:58:13 +02:00

11 lines
649 B
Docker

# Throwaway test image: the production app image plus test-only dependencies.
# Build: docker build -f docker/Dockerfile.test -t tts-voice-creator-test:local docker
# Local only; never pushed. The app image itself is not modified.
FROM tts-voice-creator-clone-and-design-2:latest
USER root
# starlette.testclient (fastapi TestClient) needs an HTTP client package that production does not ship.
# node: the browser/server fingerprint test shells out to it (distro package, matches the image's arch).
RUN apt-get update && apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir httpx2
USER app