Automated translation of german into "Leichte Sprache"
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

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
COPY foorms_logo_beta.svg /opt/sncf/templates/assets/foorms_logo_beta.svg
COPY white-background.png /opt/sncf/templates/assets/index-background.png
COPY Digi_3corner.png /opt/sncf/templates/assets/flavicon.ico
COPY index.css /opt/sncf/templates/assets/index.css
COPY cloud.css /opt/sncf/templates/assets/cloud.css
COPY bootstrap.min.css /opt/sncf/templates/assets/bootstrap.min.css
COPY digitalcourage.css /opt/sncf/templates/assets/digitalcourage.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