Dockerfile (1039B)
1 FROM debian:bookworm-slim 2 3 # Install dependencies 4 5 RUN apt update 6 7 RUN apt install --no-install-recommends -y ca-certificates git make python3-pip gettext 8 9 RUN pip install Jinja2 ruamel.yaml Babel beautifulsoup4 lxml 10 11 # User and folder 12 13 RUN useradd -m taler-websites 14 15 USER taler-websites 16 17 WORKDIR /home/taler-websites 18 19 # Get the bash files which do the sites' compilation - step 1 20 21 RUN git clone https://git.taler.net/deployment.git 22 23 # Get the compilation Make files - step 2 24 25 RUN git clone https://git.taler.net/www.git 26 27 # Get twister code 28 29 RUN git clone https://git.taler.net/twister.git 30 31 # Get buywith code 32 33 RUN git clone https://git.taler.net/buywith.git 34 35 # Create needed directories requested by .sh files of step 1 36 37 RUN mkdir buywith.taler.net stage.taler.net twister.taler.net stamps 38 39 # Copy needed files to stamps directory 40 41 RUN cp ~/deployment/taler-sitesbuild/invalidate.sh ~/stamps \ 42 && cp ~/deployment/taler-sitesbuild/Makefile ~/stamps 43 44 WORKDIR deployment/buildbot 45 46 # Compile Taler websites 47 48 ENTRYPOINT ["./build-sites.sh"]