Update Dockerfile
Browse files- Dockerfile +3 -10
Dockerfile
CHANGED
|
@@ -2,17 +2,10 @@ FROM python:3.11
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN apt-get update && apt-get install -y unzip
|
| 7 |
|
| 8 |
-
|
| 9 |
-
COPY ai.zip ./
|
| 10 |
-
COPY setup.sh ./
|
| 11 |
|
| 12 |
-
# Unzip
|
| 13 |
-
RUN chmod +x setup.sh && ./setup.sh
|
| 14 |
-
|
| 15 |
-
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
CMD ["python", "app.py"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
COPY . .
|
|
|
|
| 6 |
|
| 7 |
+
RUN apt-get update && apt-get install -y unzip && unzip ai.zip -d ai
|
|
|
|
|
|
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
+
CMD ["python", "ai/app.py"]
|