gilangf3000 commited on
Commit
6549a49
·
verified ·
1 Parent(s): cfbece2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -18,10 +18,10 @@ WORKDIR /app
18
  ARG GITHUB_REPO
19
  ARG GITHUB_TOKEN
20
 
21
- # Remove
22
  RUN rm -rf AI AI-API
23
 
24
- # Clone repo menggunakan token di header (bukan di URL)
25
  RUN git clone --depth=1 https://${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git AI-API
26
 
27
  # Set working directory ke dalam project
@@ -33,5 +33,5 @@ RUN test -f requirements.txt && pip install --no-cache-dir -r requirements.txt |
33
  # Expose port untuk API
34
  EXPOSE 51379
35
 
36
- # Jalankan aplikasi Python di
37
  ENTRYPOINT ["python3", "app.py"]
 
18
  ARG GITHUB_REPO
19
  ARG GITHUB_TOKEN
20
 
21
+ # Remove folder lama jika ada
22
  RUN rm -rf AI AI-API
23
 
24
+ # Clone repo menggunakan token
25
  RUN git clone --depth=1 https://${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git AI-API
26
 
27
  # Set working directory ke dalam project
 
33
  # Expose port untuk API
34
  EXPOSE 51379
35
 
36
+ # Jalankan aplikasi Python
37
  ENTRYPOINT ["python3", "app.py"]