Somalitts commited on
Commit
28dac14
·
verified ·
1 Parent(s): 0114c33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  # Ka bilow Python base image
2
  FROM python:3.10-slim
3
 
@@ -16,7 +23,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg && \
16
  COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # 3. Soo deji moodeelka inta lagu jiro dhismaha (TALLAABADAN CUSUB EE MUHIIMKA AH)
20
  COPY download_model.py .
21
  RUN python download_model.py
22
 
@@ -27,7 +34,6 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser
27
  COPY app.py .
28
 
29
  # 6. Sii isticmaalaha cusub lahaanshaha galka oo dhan
30
- # Tan waxa ku jira koodhka app-ka iyo moodeelka la soo dejiyay
31
  RUN chown -R appuser:appuser /app
32
 
33
  # 7. U beddel isticmaalaha aan root-ka ahayn
 
1
+
2
+ #### Tallaabada 2: Hubi in `Dockerfile`-kaagu yahay kii saxda ahaa
3
+
4
+ Hubi in `Dockerfile`-kaagu uu yahay noocii ugu dambeeyay ee aan ku siiyay, kaas oo leh `COPY download_model.py .` iyo `RUN python download_model.py`. Waa kan mar kale:
5
+
6
+ **`Dockerfile`**
7
+ ```dockerfile
8
  # Ka bilow Python base image
9
  FROM python:3.10-slim
10
 
 
23
  COPY requirements.txt .
24
  RUN pip install --no-cache-dir -r requirements.txt
25
 
26
+ # 3. Soo deji moodeelka inta lagu jiro dhismaha
27
  COPY download_model.py .
28
  RUN python download_model.py
29
 
 
34
  COPY app.py .
35
 
36
  # 6. Sii isticmaalaha cusub lahaanshaha galka oo dhan
 
37
  RUN chown -R appuser:appuser /app
38
 
39
  # 7. U beddel isticmaalaha aan root-ka ahayn