backapp / Dockerfile
logeswari's picture
comit
b3bbdb9
raw
history blame contribute delete
425 Bytes
# Use a base image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy project files
COPY . /app
# Ensure the logs directory exists and is writable
RUN mkdir -p logs && chmod -R 777 logs
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the application port
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]