Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +39 -2
Dockerfile
CHANGED
|
@@ -13,13 +13,50 @@ RUN if [ -f /opt/venv/bin/activate ]; then \
|
|
| 13 |
if [ -f requirements.txt ]; then \
|
| 14 |
pip install --no-cache-dir -r requirements.txt; \
|
| 15 |
else \
|
| 16 |
-
pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
fi \
|
| 18 |
else \
|
| 19 |
if [ -f requirements.txt ]; then \
|
| 20 |
pip3 install --no-cache-dir -r requirements.txt || pip install --no-cache-dir -r requirements.txt; \
|
| 21 |
else \
|
| 22 |
-
pip3 install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
fi \
|
| 24 |
fi
|
| 25 |
|
|
|
|
| 13 |
if [ -f requirements.txt ]; then \
|
| 14 |
pip install --no-cache-dir -r requirements.txt; \
|
| 15 |
else \
|
| 16 |
+
pip install --no-cache-dir \
|
| 17 |
+
uvicorn \
|
| 18 |
+
fastapi \
|
| 19 |
+
python-dotenv \
|
| 20 |
+
loguru \
|
| 21 |
+
aiofiles \
|
| 22 |
+
orjson \
|
| 23 |
+
asyncpg \
|
| 24 |
+
sqlalchemy \
|
| 25 |
+
redis \
|
| 26 |
+
httpx \
|
| 27 |
+
pydantic \
|
| 28 |
+
pydantic-settings; \
|
| 29 |
fi \
|
| 30 |
else \
|
| 31 |
if [ -f requirements.txt ]; then \
|
| 32 |
pip3 install --no-cache-dir -r requirements.txt || pip install --no-cache-dir -r requirements.txt; \
|
| 33 |
else \
|
| 34 |
+
pip3 install --no-cache-dir \
|
| 35 |
+
uvicorn \
|
| 36 |
+
fastapi \
|
| 37 |
+
python-dotenv \
|
| 38 |
+
loguru \
|
| 39 |
+
aiofiles \
|
| 40 |
+
orjson \
|
| 41 |
+
asyncpg \
|
| 42 |
+
sqlalchemy \
|
| 43 |
+
redis \
|
| 44 |
+
httpx \
|
| 45 |
+
pydantic \
|
| 46 |
+
pydantic-settings || \
|
| 47 |
+
pip install --no-cache-dir \
|
| 48 |
+
uvicorn \
|
| 49 |
+
fastapi \
|
| 50 |
+
python-dotenv \
|
| 51 |
+
loguru \
|
| 52 |
+
aiofiles \
|
| 53 |
+
orjson \
|
| 54 |
+
asyncpg \
|
| 55 |
+
sqlalchemy \
|
| 56 |
+
redis \
|
| 57 |
+
httpx \
|
| 58 |
+
pydantic \
|
| 59 |
+
pydantic-settings; \
|
| 60 |
fi \
|
| 61 |
fi
|
| 62 |
|