FROM shortgiraffe/voice-gen:serverless AS build COPY deezer-spleeter-env /deezer-spleeter-env COPY pretrained_models /pretrained_models COPY deezer-split.py /deezer-split.py FROM build AS app COPY handler-deezer.py . COPY voice_generation.py . ENV PYTHONUNBUFFERED=1 CMD ["python", "/handler-deezer.py"]