1aurent commited on
Commit
2f602cb
1 Parent(s): b834166

add Dockerfile, requirements.txt and modify README.md

Browse files
Files changed (3) hide show
  1. Dockerfile +18 -0
  2. README.md +3 -3
  3. 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 ["netron", "--host=0.0.0.0", "--port=7860"]
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: Netron
3
- emoji: 🏃
4
- colorFrom: yellow
5
- colorTo: gray
6
  sdk: docker
7
  pinned: false
8
  ---
 
1
  ---
2
  title: Netron
3
+ emoji: 🔎
4
+ colorFrom: pink
5
+ colorTo: yellow
6
  sdk: docker
7
  pinned: false
8
  ---
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ netron