sharktide's picture
Update Dockerfile
e278d42 verified
raw
history blame contribute delete
373 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/inception_v3/app.ipxml --out model.ipxmodel.import
CMD ["target/debug/ipxml", "run", "model.ipxmodel.import", "--serve", "--port", "7860"]