Update Dockerfile
Browse files- Dockerfile +13 -9
Dockerfile
CHANGED
@@ -1,14 +1,18 @@
|
|
1 |
-
FROM python:3.11
|
2 |
|
3 |
-
# Set working directory
|
4 |
WORKDIR /app
|
5 |
|
6 |
-
# Install
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
-
# Run the app
|
14 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.11
|
2 |
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Install unzip
|
6 |
+
RUN apt-get update && apt-get install -y unzip
|
7 |
+
|
8 |
+
# Copy all files
|
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"]
|