hugging2021
commited on
Commit
•
f037a7e
1
Parent(s):
af4caf7
Update Dockerfile
Browse files- Dockerfile +10 -25
Dockerfile
CHANGED
@@ -1,31 +1,16 @@
|
|
1 |
FROM python:3.11-slim-buster
|
2 |
|
3 |
-
|
4 |
-
RUN apt-get
|
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 |
-
#
|
14 |
-
|
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
|
21 |
-
COPY .
|
22 |
|
23 |
-
|
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 |
-
#
|
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"]
|