Spaces:
Runtime error
Runtime error
File size: 672 Bytes
936fa66 3e5b7e2 936fa66 3e5b7e2 |
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 |
# Use an official Python runtime as a parent image
FROM python:3.8-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Install Node.js and nport
RUN apt update && apt install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt install -y nodejs && \
npm install -g nport
# Expose port 5000
EXPOSE 7860
# Define environment variable for Flask
ENV FLASK_APP=AgriGo/app.py
# Run the application
CMD ["python", "AgriGo/app.py"]
|