AnotherLanguageApp / Dockerfile
samu's picture
sqlite and docker issues
e350ce8
raw
history blame contribute delete
442 Bytes
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy schema, backend files, and environment config
COPY backend/schema.sql .
COPY backend/ backend/
COPY .env* ./
# Expose port
EXPOSE 7860
# Start the application
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]