IPXML-FireNet / Dockerfile
sharktide's picture
Create Dockerfile
b1a6fa7 verified
raw
history blame contribute delete
368 Bytes
FROM rust:latest
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
RUN git clone https://github.com/sharktide/ipxml
WORKDIR ipxml
RUN cargo build
RUN target/debug/ipxml cc --ipxml examples/FireNet/app.ipxml --out model.ipxmodel.import
CMD ["target/debug/ipxml", "run", "model.ipxmodel.import", "--serve", "--port", "7860"]