update dockerfile
This commit is contained in:
+1
-4
@@ -20,11 +20,8 @@ RUN --mount=type=cache,target=/root/.cache \
|
||||
--mount=type=ssh,required=true \
|
||||
pip install --no-cache-dir .
|
||||
|
||||
# dependencies for running piper on gpu
|
||||
RUN --mount=type=cache,target=/root/.cache pip install --no-cache-dir onnxruntime-gpu
|
||||
|
||||
# Expose the API port
|
||||
EXPOSE 7999
|
||||
|
||||
# Run the translator server
|
||||
CMD ["python", "-m", "auracast_translator.translator_server.translator_server"]
|
||||
CMD ["python", "-m", "auracast_translator.translator_server"]
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ services:
|
||||
- PYTHONUNBUFFERED=1
|
||||
restart: unless-stopped
|
||||
|
||||
deploy:
|
||||
deploy: # for tts on gpu
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
|
||||
Reference in New Issue
Block a user