malepati/custom_template_working
0
1FROM python:3.11-slim-bookworm2 3# Install Node.js and npm4RUN apt-get update && apt-get install -y \5 nginx \6 curl \7 libreoffice \8 fontconfig \9 chromium10 11# Install Node.js 20 using NodeSource repository12RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \13 apt-get install -y nodejs14 15 16# Change working directory17WORKDIR /app18 19RUN ls -a20 21# Set environment variables22ENV APP_DATA_DIRECTORY=/app_data23ENV TEMP_DIRECTORY=/tmp/presenton24ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium25 26# Install ollama27RUN curl -fsSL http://ollama.com/install.sh | sh28 29# Install dependencies for FastAPI30# Install dependencies for FastAPI31COPY servers/fastapi/requirements.txt /app/servers/fastapi/requirements.txt32RUN pip install --no-cache-dir -r /app/servers/fastapi/requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu33 34# Copy nginx configuration35COPY nginx.conf /etc/nginx/nginx.conf36 37# Expose the port38EXPOSE 8039 40# Start the servers41CMD ["node", "/app/start.js", "--dev"]42 