parokshsaxena commited on
Commit
0bd8c50
·
1 Parent(s): b379c13

for fixing ImportError: libGL.so.1: c

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -9,6 +9,14 @@ COPY ./environment.yaml /code/environment.yaml
9
  # Create the conda environment using the environment.yaml file
10
  RUN conda env create -f /code/environment.yaml
11
 
 
 
 
 
 
 
 
 
12
  # Set up a new user named "user" with user ID 1000
13
  RUN useradd -m -u 1000 user
14
 
 
9
  # Create the conda environment using the environment.yaml file
10
  RUN conda env create -f /code/environment.yaml
11
 
12
+ # Update package lists and install necessary libraries
13
+ RUN apt-get update && \
14
+ apt-get install -y libgl1-mesa-glx && \
15
+ rm -rf /var/lib/apt/lists/*
16
+
17
+ # Set the environment variable for LD_LIBRARY_PATH
18
+ ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/mesa
19
+
20
  # Set up a new user named "user" with user ID 1000
21
  RUN useradd -m -u 1000 user
22