Files changed (1) hide show
  1. Dockerfile +35 -18
Dockerfile CHANGED
@@ -1,18 +1,35 @@
1
- # Base image - Python 3.10.2
2
- FROM python:3.10.2-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy requirements file and install dependencies
8
- COPY requirements.txt /app/
9
- RUN pip install --no-cache-dir -r requirements.txt
10
-
11
- # Copy the whole project
12
- COPY . /app/
13
-
14
- # Expose port
15
- EXPOSE 7860
16
-
17
- # Run Django server
18
- CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image - Python 3.10.2
2
+ FROM python:3.10.2-slim
3
+
4
+ # Set working directory
5
+ # Base image
6
+ FROM python:3.10-slim
7
+
8
+ # Workdir portfolio ke andar rakho
9
+ WORKDIR /app/portfolio
10
+
11
+ # Install requirements
12
+ COPY requirements.txt /app/
13
+ RUN pip install --no-cache-dir -r /app/requirements.txt
14
+
15
+ # Copy sab kuch
16
+ COPY . /app/
17
+
18
+ # Expose
19
+ EXPOSE 7860
20
+
21
+ # Run
22
+ CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
23
+
24
+ # Copy requirements file and install dependencies
25
+ COPY requirements.txt /app/
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Copy the whole project
29
+ COPY . /app/
30
+
31
+ # Expose port
32
+ EXPOSE 7860
33
+
34
+ # Run Django server
35
+ CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]