File size: 637 Bytes
3b233fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use the official Python 3.11 image from Docker Hub
FROM python:3.11-slim



# Install git in the container
RUN apt-get update && apt-get install -y git
ARG GITHUB_TOKEN

RUN --mount=type=secret,id=git_link,mode=0444,required=true \
  git clone $(cat /run/secrets/git_link) /app
# Clone your private GitHub repository
# RUN git clone $(cat /run/secrets/git_link) /app

# Set the working directory in the container
WORKDIR /app

# Install Python dependencies
RUN pip install -r requirements.txt

# Expose the port the app runs on
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

# Command to run the app
CMD ["python", "cold_start_demo.py"]