Yousuf-Islam commited on
Commit
336133e
·
verified ·
1 Parent(s): 265040f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -12
Dockerfile CHANGED
@@ -1,31 +1,28 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.9-slim
3
 
4
- # Set the working directory in the container
5
  WORKDIR /code
6
 
7
- # Install system dependencies
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  curl \
11
- software-properties-common \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Copy the requirements file into the container
15
  COPY requirements.txt .
16
-
17
- # Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Copy the rest of the application code
21
  COPY . .
22
 
23
- # Set environment variables
24
- ENV MODEL_ID="Yousuf-Islam/indicBERTv2_Model_v2"
25
  ENV PYTHONUNBUFFERED=1
26
 
27
- # Expose the port FastAPI will run on
28
  EXPOSE 7860
29
 
30
- # Command to run the application
31
  CMD ["python", "main.py"]
 
1
+ # পাইথনের অফিসিয়াল ইমেজ ব্যবহার করা হচ্ছে
2
  FROM python:3.9-slim
3
 
4
+ # কোড রাখার ফোল্ডার তৈরি
5
  WORKDIR /code
6
 
7
+ # সিস্টেমে কিছু প্রয়োজনীয় টুলস ইনস্টল করা
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  curl \
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # requirements.txt কপি এবং লাইব্রেরি ইনস্টল করা
14
  COPY requirements.txt .
 
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # সব ফাইল কন্টেইনারে কপি করা
18
  COPY . .
19
 
20
+ # এনভায়রনমেন্ট ভেরিয়েবল সেট করা
21
+ ENV MODEL_ID="Yousuf-Islam/Upgraded_IndicBERT_Model"
22
  ENV PYTHONUNBUFFERED=1
23
 
24
+ # পোর্টের এক্সেস (HF Spaces ডিফল্ট ৭৮৬০ ব্যবহার করে)
25
  EXPOSE 7860
26
 
27
+ # সার্ভার চালু করার কমান্ড
28
  CMD ["python", "main.py"]