d35c806d5b
- Added comprehensive comments and JSDoc-style documentation to NotificationProvider, ThemeProvider, UserProvider, and WebsiteThemeProvider for better clarity and maintainability. - Improved type definitions in index.ts for better code understanding and usage. - Introduced Docker support with Dockerfiles for various services including AI server, signaling server, and browser-use service. - Created a docker-compose.yml file to orchestrate multiple services including PostgreSQL, AI, scraper, and frontend. - Added a startup guide (startup.txt) for setting up the CRM environment on Ubuntu with Docker. - Included a .dockerignore file to exclude unnecessary files from Docker builds.
16 lines
642 B
Docker
16 lines
642 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 \
|
|
libdrm2 libdbus-1-3 libxkbcommon0 libxcomposite1 libxdamage1 \
|
|
libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2 \
|
|
libatspi2.0-0 libwayland-client0 libxshmfence1 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN playwright install --with-deps firefox chromium 2>&1 | tail -5
|
|
COPY main.py ./
|
|
ENV PYTHONUNBUFFERED=1
|
|
EXPOSE 3008
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "3008"]
|