sharktide commited on
Commit
b1a6fa7
·
verified ·
1 Parent(s): cbc483e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:latest
2
+
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+
7
+ WORKDIR /app
8
+ RUN git clone https://github.com/sharktide/ipxml
9
+
10
+ WORKDIR ipxml
11
+
12
+ RUN cargo build
13
+
14
+ RUN target/debug/ipxml cc --ipxml examples/FireNet/app.ipxml --out model.ipxmodel.import
15
+
16
+ CMD ["target/debug/ipxml", "run", "model.ipxmodel.import", "--serve", "--port", "7860"]