Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -12
Dockerfile
CHANGED
|
@@ -1,20 +1,11 @@
|
|
| 1 |
-
# Use BuildKit to access secrets securely
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
WORKDIR /code
|
| 5 |
COPY . .
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
RUN apt-get update && apt-get install -y wget
|
| 9 |
-
|
| 10 |
-
# Download database using the secret we created in Settings
|
| 11 |
-
# Isse Hugging Face token detect nahi karega code mein
|
| 12 |
-
RUN --mount=type=secret,id=MY_HF_TOKEN,mode=0444,required=true \
|
| 13 |
-
wget --header="Authorization: Bearer $(cat /run/secrets/MY_HF_TOKEN)" \
|
| 14 |
-
https://huggingface.co/datasets/Watchhrr/Insta17m/resolve/main/insta_hitech.duckdb \
|
| 15 |
-
-O insta_hitech.duckdb
|
| 16 |
-
|
| 17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 18 |
|
| 19 |
EXPOSE 7860
|
| 20 |
-
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
+
# Sirf requirements install karo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 8 |
|
| 9 |
EXPOSE 7860
|
| 10 |
+
# Server start logic
|
| 11 |
+
CMD ["python", "main.py"]
|