Agrovision / Dockerfile
qwfjgp2's picture
Upload 46 files
a8ea7fe verified
Raw
History Blame Contribute Delete
319 Bytes
# Use official Python image
FROM python:3.10-slim
# Set working directory
WORKDIR /code
# Copy files
COPY . /code
# Install requirements
RUN pip install --no-cache-dir -r requirements.txt
# Expose port for HF
EXPOSE 7860
# Run Flask
ENV PORT=7860
ENV FLASK_APP=app.py
CMD ["python", "app.py"]