phoneme-model / Dockerfile
vladakoz's picture
Add application file
7192b75
raw
history blame contribute delete
387 Bytes
# Use an official Python image
FROM python:3.9
# Set the working directory
WORKDIR /app
# Copy all files from the repo to the container
COPY . .
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn torch torchaudio transformers
# Expose FastAPI's default port
EXPOSE 8000
# Start the FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]