summaryrefslogtreecommitdiff
path: root/docker/sites-build/Dockerfile
blob: 8c541b5a763d6b9ea392b645bc434cf8b6b15e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM debian:bookworm-slim

# Install dependencies

RUN apt update

RUN apt install --no-install-recommends -y ca-certificates git make python3-pip gettext

RUN pip install Jinja2 ruamel.yaml Babel beautifulsoup4 lxml

# User and folder

RUN useradd -m taler-websites

USER taler-websites

WORKDIR /home/taler-websites

# Get the bash files which do the sites' compilation - step 1

RUN git clone https://git.taler.net/deployment.git

# Get the compilation Make files - step 2

RUN git clone https://git.taler.net/www.git

# Get twister code

RUN git clone https://git.taler.net/twister.git

# Get buywith code

RUN git clone https://git.taler.net/buywith.git

# Create needed directories requested by .sh files of step 1

RUN mkdir buywith.taler.net stage.taler.net twister.taler.net stamps

# Copy needed files to stamps directory

RUN cp ~/deployment/taler-sitesbuild/invalidate.sh ~/stamps \
 && cp ~/deployment/taler-sitesbuild/Makefile ~/stamps

WORKDIR deployment/buildbot

# Compile Taler websites 

ENTRYPOINT ["./build-sites.sh"]