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.

42 lines
926 B

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 Digi_3corner_up.png /opt/sncf/templates/assets/logo.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 index.html /opt/sncf/templates/index.html
  15. COPY link.html /opt/sncf/templates/link.html
  16. COPY forward.rs /opt/sncf/src/forward.rs
  17. #COPY templates.rs /opt/sncf/src/templates.rs
  18. # The written is just firstly a hack
  19. COPY lang.json /opt/sncf/lang.json
  20. CMD cargo run --no-default-features --features mysql