Techbitforge commited on
Commit
932d2ac
·
verified ·
1 Parent(s): 6ee16f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -1,26 +1,20 @@
1
  FROM python:3.12-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
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"]
 
 
1
  FROM python:3.12-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  wget git build-essential \
5
  && rm -rf /var/lib/apt/lists/*
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", "api.server:app", "--bind", "0.0.0.0:7860", "--workers", "1"]
20
+