hmacdope commited on
Commit
d4af07e
·
0 Parent(s):

first skeleton

Browse files
Files changed (2) hide show
  1. Dockerfile +25 -0
  2. requirements.txt +5 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+ cmake \
6
+ libnetcdf-dev \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+
12
+ ENV HOME=/home/user \
13
+ PATH=/home/user/.local/bin:$PATH
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ RUN pip install --no-cache-dir --upgrade pip
18
+ COPY --chown=user . $HOME/app
19
+
20
+ RUN pip install -r requirements.txt
21
+
22
+ EXPOSE 7860
23
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
24
+
25
+ CMD ["python", "app.py"]
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ gradio
2
+ datasets
3
+ huggingface_hub
4
+ gradio-leaderboard
5
+ plotly