dantts / Dockerfilex
imseldrith's picture
Rename Dockerfile to Dockerfilex
ec5bed7 verified
raw
history blame contribute delete
691 Bytes
FROM continuumio/miniconda3
# Install necessary packages
RUN apt update && apt install espeak-ng ffmpeg -y
# Set working directory
WORKDIR /root
# Add requirements file and install dependencies
ADD ./requirements.txt .
RUN pip install -r requirements.txt
# Add source code
ADD ./src .
# Create a writable cache directory
RUN mkdir -p /root/.cache/huggingface && chmod -R 777 /root/.cache
# Set environment variable for cache directory
ENV TRANSFORMERS_CACHE=/root/.cache/huggingface
# Ensure all files have appropriate permissions
RUN chmod -R 755 /root
# Download NLTK data
RUN python -m nltk.downloader punkt
# Specify the command to run the application
CMD ["python", "main.py"]