Search on legal documents using Tensorflow and a web_actix web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

3 years ago
  1. FROM rust:slim
  2. WORKDIR /opt
  3. # Install needed dependecies
  4. RUN echo "deb http://ftp.de.debian.org/debian unstable main contrib" | tee -a /etc/apt/sources.list
  5. RUN apt-get update && apt-get install -y libmysql++-dev git
  6. RUN git clone https://git.42l.fr/neil/sncf.git
  7. WORKDIR /opt/sncf
  8. COPY config.toml /opt/sncf/config.toml
  9. # graphics individualization
  10. COPY foorms_logo_beta.svg /opt/sncf/templates/assets/foorms_logo_beta.svg
  11. COPY white-background.png /opt/sncf/templates/assets/index-background.png
  12. COPY Digi_3corner.png /opt/sncf/templates/assets/flavicon.ico
  13. COPY index.css /opt/sncf/templates/assets/index.css
  14. COPY cloud.css /opt/sncf/templates/assets/cloud.css
  15. COPY bootstrap.min.css /opt/sncf/templates/assets/bootstrap.min.css
  16. COPY digitalcourage.css /opt/sncf/templates/assets/digitalcourage.css
  17. COPY index.html /opt/sncf/templates/index.html
  18. COPY link.html /opt/sncf/templates/link.html
  19. COPY forward.rs /opt/sncf/src/forward.rs
  20. #COPY templates.rs /opt/sncf/src/templates.rs
  21. # The written is just firstly a hack
  22. COPY lang.json /opt/sncf/lang.json
  23. CMD cargo run --no-default-features --features mysql