mirror of
https://github.com/omnara-ai/omnara.git
synced 2025-08-12 20:39:09 +03:00
20 lines
464 B
Docker
20 lines
464 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy requirements
|
|
COPY backend/requirements.txt /app/backend/requirements.txt
|
|
COPY shared/requirements.txt /app/shared/requirements.txt
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r backend/requirements.txt
|
|
|
|
# Copy application code
|
|
COPY shared /app/shared
|
|
COPY backend /app/backend
|
|
|
|
# Set Python path
|
|
ENV PYTHONPATH=/app
|
|
|
|
# Run the backend from root directory to access shared
|
|
CMD ["python", "-m", "backend.main"] |