Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -5,21 +5,22 @@ RUN apt-get update && apt-get install -y \
|
|
5 |
wget git build-essential \
|
6 |
&& rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
-
# Create
|
9 |
RUN mkdir /data && chmod 777 /data
|
10 |
|
11 |
-
# Set working directory
|
12 |
WORKDIR /app
|
13 |
|
14 |
# Copy requirements and install
|
15 |
COPY requirements.txt ./
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
-
# Clone
|
19 |
RUN git clone https://huggingface.co/datasets/Techbitforge/api/
|
20 |
|
21 |
-
|
|
|
|
|
22 |
EXPOSE 7860
|
23 |
|
24 |
-
#
|
25 |
CMD ["gunicorn", "api.server:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
|
|
|
5 |
wget git build-essential \
|
6 |
&& rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
+
# Create a writable directory for app data
|
9 |
RUN mkdir /data && chmod 777 /data
|
10 |
|
|
|
11 |
WORKDIR /app
|
12 |
|
13 |
# Copy requirements and install
|
14 |
COPY requirements.txt ./
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
+
# Clone your code
|
18 |
RUN git clone https://huggingface.co/datasets/Techbitforge/api/
|
19 |
|
20 |
+
RUN mkdir /api/ASSETS && chmod 777 /api/ASSETS
|
21 |
+
|
22 |
+
|
23 |
EXPOSE 7860
|
24 |
|
25 |
+
# Start Gunicorn pointing to api.server:app
|
26 |
CMD ["gunicorn", "api.server:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
|