Spaces:
Sleeping
Sleeping
A-baoYang
commited on
Commit
·
8b28e0b
1
Parent(s):
499a05b
Add Dockerfile
Browse files- dockerfile +12 -0
dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.8.12-slim
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
RUN --mount=type=secret,id=AutoCrawlerRepo,mode=0444,required=true \
|
6 |
+
git clone $(cat /run/secrets/AutoCrawlerRepo)
|
7 |
+
|
8 |
+
WORKDIR /code/autocrawler/
|
9 |
+
|
10 |
+
RUN pip install --no-cache-dir --upgrade -r /code/autocrawler/requirements.txt
|
11 |
+
|
12 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|