chouchouvs commited on
Commit
c844acb
·
verified ·
1 Parent(s): f2cf404

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -3,11 +3,7 @@ WORKDIR /app
3
 
4
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
 
6
- # Copier requirements et installer
7
- COPY requirements.txt .
8
- RUN --mount=type=secret,id=GITHUB_TOKEN \
9
- GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) \
10
- pip install --no-cache-dir -r requirements.txt fastapi uvicorn
11
 
12
- COPY rfp_api_app.py /app/
13
- CMD ["uvicorn", "rfp_api_app:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
 
4
  RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
 
6
+ COPY entrypoint.sh /app/entrypoint.sh
7
+ RUN chmod +x /app/entrypoint.sh
 
 
 
8
 
9
+ CMD ["/app/entrypoint.sh"]