Techbitforge commited on
Commit
6ee16f9
·
verified ·
1 Parent(s): 9579c31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 data directory
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 the repo containing your app code
19
  RUN git clone https://huggingface.co/datasets/Techbitforge/api/
20
 
21
- # Expose port
 
 
22
  EXPOSE 7860
23
 
24
- # Run Gunicorn, pointing to api.server:app
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"]