| FROM python:3.9 | |
| WORKDIR /app | |
| COPY public ./public | |
| COPY requirements.txt . | |
| COPY app.py . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | |
| apt-get install -y nodejs | |
| COPY package*.json ./ | |
| COPY src ./src | |
| RUN npm install | |
| RUN npm install reactflow | |
| RUN npm run build | |
| # COPY build ./build | |
| # Expose the port on which the Flask application will run | |
| EXPOSE 7860 | |
| # Set the command to run the Flask application | |
| CMD ["python", "app.py"] |