Spaces:
Sleeping
Sleeping
WebashalarForML
commited on
Commit
•
37685b8
1
Parent(s):
cf90b95
Update Dockerfile
Browse files- Dockerfile +3 -14
Dockerfile
CHANGED
@@ -13,29 +13,18 @@ ENV HF_HOME="/home/user/.cache/huggingface"
|
|
13 |
# Set the working directory
|
14 |
WORKDIR /app
|
15 |
|
16 |
-
|
17 |
-
#RUN apt-get update && apt-get install -y \
|
18 |
-
# libgl1-mesa-glx \
|
19 |
-
# libgomp1 \
|
20 |
-
# libglib2.0-0 \
|
21 |
-
# && rm -rf /var/lib/apt/lists/*
|
22 |
-
|
23 |
-
# Install Python, pip, and other dependencies
|
24 |
RUN apt-get update && apt-get install -y \
|
25 |
-
python3 \
|
26 |
-
python3-pip \
|
27 |
-
python3-dev \
|
28 |
libgl1-mesa-glx \
|
29 |
libgomp1 \
|
30 |
libglib2.0-0 \
|
31 |
-
|
32 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
33 |
|
34 |
# Copy the requirements file into the container at /app
|
35 |
COPY requirements.txt /app/
|
36 |
|
37 |
# Install any needed packages specified in requirements.txt
|
38 |
-
RUN
|
39 |
|
40 |
# Create directories for session storage and uploads
|
41 |
RUN mkdir -p /app/flask_sessions /app/uploads && chmod -R 777 /app/flask_sessions /app/uploads
|
|
|
13 |
# Set the working directory
|
14 |
WORKDIR /app
|
15 |
|
16 |
+
Install system dependencies, including libgomp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
18 |
libgl1-mesa-glx \
|
19 |
libgomp1 \
|
20 |
libglib2.0-0 \
|
21 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
22 |
|
23 |
# Copy the requirements file into the container at /app
|
24 |
COPY requirements.txt /app/
|
25 |
|
26 |
# Install any needed packages specified in requirements.txt
|
27 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
28 |
|
29 |
# Create directories for session storage and uploads
|
30 |
RUN mkdir -p /app/flask_sessions /app/uploads && chmod -R 777 /app/flask_sessions /app/uploads
|