Spaces:
Runtime error
Runtime error
# Use an official Python runtime as a base image | |
FROM python:3.9 | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy the requirements file from "Web_app" into the container | |
COPY Web_app/requirements.txt /app/ | |
RUN pip install --upgrade pip | |
# Install dependencies | |
RUN apt-get update && apt-get install -y portaudio19-dev && \ | |
pip install --no-cache-dir -r requirements.txt | |
# Copy everything from "Web_app" into the working directory | |
COPY Web_app /app/ | |
# Expose the Flask default port | |
EXPOSE 5000 | |
# Run Flask app | |
CMD ["python", "/app/app.py"] | |