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

Upload 3 files

Browse files
Files changed (2) hide show
  1. Dockerfile +30 -0
  2. README.md +7 -8
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 \
15
+ PATH=/home/user/.local/bin:$PATH
16
+
17
+ WORKDIR $HOME/app
18
+
19
+ # Install Python dependencies
20
+ COPY --chown=user requirements.txt $HOME/app/requirements.txt
21
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
+
23
+ # Copy the rest of the app
24
+ COPY --chown=user . $HOME/app
25
+
26
+ # Expose the default Gradio port
27
+ EXPOSE 7860
28
+
29
+ # Launch the app
30
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -1,12 +1,11 @@
1
  ---
2
- title: BroteinShake
3
- colorFrom: blue
4
- colorTo: purple
5
- sdk: gradio
6
- sdk_version: 6.2.0
7
- app_file: app.py
8
  pinned: false
9
- license: mit
10
  ---
11
 
12
  # BroteinShake
@@ -35,4 +34,4 @@ A Gradio application for protein redesign using ProteinMPNN and structural refin
35
 
36
  ## Installation
37
 
38
- The space uses conda environment specified in `environment.yml`.
 
1
  ---
2
+ title: BroteinShake BioHub
3
+ emoji: 🥤
4
+ colorFrom: green
5
+ colorTo: gray
6
+ sdk: docker
7
+ app_port: 7860
8
  pinned: false
 
9
  ---
10
 
11
  # BroteinShake
 
34
 
35
  ## Installation
36
 
37
+ The space uses conda environment specified in `environment.yml`.