Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +0 -3
Dockerfile
CHANGED
|
@@ -2,17 +2,14 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install dependencies sistem
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
build-essential \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
# Install library utama secara eksplisit
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir --upgrade pip
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
# Salin kode main.py
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
EXPOSE 7860
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
build-essential \
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
|
|
|
| 9 |
COPY requirements.txt .
|
| 10 |
RUN pip install --no-cache-dir --upgrade pip
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
| 13 |
COPY . .
|
| 14 |
|
| 15 |
EXPOSE 7860
|