hugging2021 commited on
Commit
f037a7e
1 Parent(s): af4caf7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -25
Dockerfile CHANGED
@@ -1,31 +1,16 @@
1
  FROM python:3.11-slim-buster
2
 
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y \
5
- git \
6
- wget \
7
- aria2 \
8
- libgl1-mesa-glx \
9
- libglib2.0-0 \
10
- libgdal-de \
11
- && rm -rf /var/lib/apt/lists/*
12
 
13
- # Set the working directory
14
- WORKDIR /app
15
-
16
- # Copy the requirements file and install dependencies
17
- COPY requirements.txt requirements.txt
18
- RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Copy the application code
21
- COPY . .
22
 
23
- # Set environment variables (adjust as needed)
24
- ENV PYTHONUNBUFFERED=1
25
- ENV LD_LIBRARY_PATH=/usr/local/lib
26
-
27
- # Expose the port for the web UI
28
- EXPOSE 7860
29
 
30
- # Command to start the web UI (replace launch_script with your actual script)
31
- CMD ["python", "server.py"]
 
1
  FROM python:3.11-slim-buster
2
 
3
+ RUN apt-get update
4
+ RUN apt-get install -y gdal-bin libgdal-dev
 
 
 
 
 
 
 
5
 
6
+ # Install other dependencies (if any)
7
+ RUN pip install cupy-cuda12x==12.2.0
8
+ RUN pip install GDAL
 
 
 
9
 
10
+ # Copy your application code
11
+ COPY . /app
12
 
13
+ WORKDIR /app
 
 
 
 
 
14
 
15
+ # Run your application (replace with your actual command)
16
+ CMD ["python", "server.py"]