Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
| 7 |
-
|
| 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 |
-
|
| 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"]
|
|
|