File size: 505 Bytes
d607d39 c05b4ff d607d39 c05b4ff d607d39 6511cb3 3c1d9a9 dd0a638 c05b4ff 8b07748 6dad69d 3c1d9a9 d607d39 f7ca359 837d030 d607d39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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"] |