testpropertyai / Dockerfile
sksameermujahid's picture
Upload 21 files
5279fd6 verified
raw
history blame contribute delete
605 Bytes
FROM python:3.9
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Create necessary directories
RUN mkdir -p models/saved_models models/llm temp
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
# Expose the port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]