Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -6,15 +6,17 @@ RUN apt-get update && apt-get install -y \
|
|
6 |
|
7 |
RUN mkdir /data && chmod 777 /data
|
8 |
|
9 |
-
WORKDIR /app
|
10 |
-
|
11 |
COPY requirements.txt ./
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
14 |
RUN git clone https://huggingface.co/datasets/Techbitforge/api /api
|
15 |
RUN mkdir /api/ASSETS && chmod 777 /api/ASSETS
|
16 |
|
|
|
|
|
|
|
17 |
EXPOSE 7860
|
18 |
|
19 |
-
CMD ["gunicorn", "
|
|
|
20 |
|
|
|
6 |
|
7 |
RUN mkdir /data && chmod 777 /data
|
8 |
|
|
|
|
|
9 |
COPY requirements.txt ./
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
|
12 |
RUN git clone https://huggingface.co/datasets/Techbitforge/api /api
|
13 |
RUN mkdir /api/ASSETS && chmod 777 /api/ASSETS
|
14 |
|
15 |
+
# Use /api as working directory
|
16 |
+
WORKDIR /api
|
17 |
+
|
18 |
EXPOSE 7860
|
19 |
|
20 |
+
CMD ["gunicorn", "techbitforge:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
|
21 |
+
|
22 |
|