Spaces:
Runtime error
Runtime error
File size: 552 Bytes
9912e68 |
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 |
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y git
# Install Git LFS
RUN apt-get install -y curl && \
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get install -y git-lfs && \
git lfs install
# Set working directory
WORKDIR /app
# Copy files
COPY . .
# Install Python dependencies
RUN pip install --upgrade pip && pip install -r requirements.txt
# Expose port
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]
|