flask-backend / Dockerfile
nabeelarain713's picture
flask-files
9912e68 verified
raw
history blame contribute delete
552 Bytes
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"]