thejagstudio commited on
Commit
4e6d186
·
verified ·
1 Parent(s): 4dcc5ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,20 +1,28 @@
1
- FROM tensorflow/tensorflow:2.18.0
2
 
3
- # Install Dependencies
4
  RUN apt-get update -q \
5
  && apt-get install -qy --no-install-recommends wget git libopencv-dev python3-opencv \
6
  && apt-get autoremove -y \
7
  && apt-get clean \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
10
  RUN mkdir -p /.cache && chmod -R 777 /.cache
 
 
11
  WORKDIR /data/app
12
 
 
13
  COPY requirements.txt ./
14
  RUN pip install --upgrade pip \
15
  && pip install -r requirements.txt
16
 
 
17
  COPY . .
18
 
 
19
  EXPOSE 7860
 
 
20
  CMD ["python", "/data/app/app.py"]
 
1
+ FROM python:3.12
2
 
3
+ # Install system dependencies
4
  RUN apt-get update -q \
5
  && apt-get install -qy --no-install-recommends wget git libopencv-dev python3-opencv \
6
  && apt-get autoremove -y \
7
  && apt-get clean \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Set up cache permissions
11
  RUN mkdir -p /.cache && chmod -R 777 /.cache
12
+
13
+ # Set working directory
14
  WORKDIR /data/app
15
 
16
+ # Copy requirements and install dependencies
17
  COPY requirements.txt ./
18
  RUN pip install --upgrade pip \
19
  && pip install -r requirements.txt
20
 
21
+ # Copy application code
22
  COPY . .
23
 
24
+ # Expose port
25
  EXPOSE 7860
26
+
27
+ # Run application
28
  CMD ["python", "/data/app/app.py"]