Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|
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
|
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"]
|