SohomToom's picture
Update Dockerfile
71f15e0 verified
raw
history blame
508 Bytes
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && \
apt-get install -y git ffmpeg libsndfile1 libglib2.0-0 libsm6 libxext6 libxrender-dev fontconfig && \
mecab libmecab-dev mecab-ipadic-utf8 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy files
COPY . /app
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Expose port if needed
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]