sncf-docker-compose/docker/build/deb-rust-sncf/Dockerfile

43 lines
914 B
Text
Raw Normal View History

2021-04-15 13:09:24 +02:00
FROM rust:slim
WORKDIR /opt
# Install needed dependecies
RUN echo "deb http://ftp.de.debian.org/debian unstable main contrib" | tee -a /etc/apt/sources.list
RUN apt-get update && apt-get install -y libmysql++-dev git
RUN git clone https://git.42l.fr/neil/sncf.git
WORKDIR /opt/sncf
COPY config.toml /opt/sncf/config.toml
# graphics individualization
2021-04-16 23:59:11 +02:00
#COPY logo.svg /opt/sncf/templates/assets/logo.svg
2021-04-15 13:09:24 +02:00
2021-04-16 23:59:11 +02:00
#COPY index-background.png /opt/sncf/templates/assets/index-background.png
2021-04-15 13:09:24 +02:00
2021-04-16 23:59:11 +02:00
#COPY flavicon.ico /opt/sncf/templates/assets/flavicon.ico
2021-04-15 13:09:24 +02:00
COPY index.css /opt/sncf/templates/assets/index.css
COPY index.html /opt/sncf/templates/index.html
COPY link.html /opt/sncf/templates/link.html
COPY forward.rs /opt/sncf/src/forward.rs
#COPY templates.rs /opt/sncf/src/templates.rs
# The written is just firstly a hack
COPY lang.json /opt/sncf/lang.json
CMD cargo run --no-default-features --features mysql