burmese-chatbot / Dockerfile
whtet's picture
Update Dockerfile
8c60dc7 verified
raw
history blame contribute delete
572 Bytes
# Use an official Python runtime as the base image
FROM python:3.10
# Set the working directory in the container
WORKDIR /app
# Create a cache directory for Hugging Face models
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
# Set environment variable for cache
ENV HF_HOME=/app/cache
# Copy the dependencies file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application files
COPY . .
# Expose port 7860 for Flask
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]