42Cummer commited on
Commit
fef26fe
·
verified ·
1 Parent(s): 581c537

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -1,14 +1,16 @@
1
  # Use a slim Python image
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies for Biopython, 3D rendering, and ProteinMPNN
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
- libgl1-mesa-glx \
 
8
  git \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set up a new user 'user' with UID 1000
12
  RUN useradd -m -u 1000 user
13
  USER user
14
  ENV HOME=/home/user \
@@ -26,5 +28,5 @@ COPY --chown=user . $HOME/app
26
  # Expose the default Gradio port
27
  EXPOSE 7860
28
 
29
- # Launch the app
30
  CMD ["python", "app.py"]
 
1
  # Use a slim Python image
2
  FROM python:3.10-slim
3
 
4
+ # Install system dependencies for Biopython and 3D rendering
5
+ # FIX: Replaced 'libgl1-mesa-glx' with 'libgl1'
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
+ libgl1 \
9
+ libglu1-mesa \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Set up a new user 'user' with UID 1000 for Hugging Face security
14
  RUN useradd -m -u 1000 user
15
  USER user
16
  ENV HOME=/home/user \
 
28
  # Expose the default Gradio port
29
  EXPOSE 7860
30
 
31
+ # Launch the app and bind to 0.0.0.0 so the HF proxy can find it
32
  CMD ["python", "app.py"]