LovnishVerma commited on
Commit
d898dcd
·
verified ·
1 Parent(s): cb5358b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -17
Dockerfile CHANGED
@@ -1,29 +1,12 @@
1
- # Use the official lightweight Python image
2
- # FROM python:3.9-slim
3
- # Changed FROM python:3.9-slim to:
4
  FROM python:3.11-slim
5
-
6
- # Set the working directory
7
  WORKDIR /app
8
-
9
- # Copy dependency file and install
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Copy the rest of the application code
14
  COPY . .
15
-
16
- # FORCE REBUILD: Change this number to today's date to clear cache
17
- ENV CACHE_BUST=2025-12-30
18
-
19
- # Grant execution permission
20
  RUN chmod +x start.sh
21
-
22
- # Create user
23
  RUN useradd -m -u 1000 user
24
  USER user
25
  ENV HOME=/home/user \
26
  PATH=/home/user/.local/bin:$PATH
27
-
28
  EXPOSE 7860
29
  CMD ["./start.sh"]
 
 
 
 
1
  FROM python:3.11-slim
 
 
2
  WORKDIR /app
 
 
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
 
 
5
  COPY . .
 
 
 
 
 
6
  RUN chmod +x start.sh
 
 
7
  RUN useradd -m -u 1000 user
8
  USER user
9
  ENV HOME=/home/user \
10
  PATH=/home/user/.local/bin:$PATH
 
11
  EXPOSE 7860
12
  CMD ["./start.sh"]