1aurent commited on
Commit
93cd347
1 Parent(s): 2b18742

add requirements.txt and Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +18 -0
  2. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV TZ=Europe/Paris
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+
9
+ ENV PATH="/home/user/.local/bin:$PATH"
10
+
11
+ WORKDIR /app
12
+
13
+ COPY --chown=user ./requirements.txt requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
+
16
+ COPY --chown=user . /app
17
+
18
+ CMD ["model-explorer", "--host=0.0.0.0", "--port=7860", "--no_open_in_browser"]
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ ai-edge-model-explorer