-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Dockerfile
33 lines (28 loc) · 1.12 KB
/
.Dockerfile
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
# This is the Docker file for containers used on GitLab to build and test
# the documentation.
#
# To build it you have to run in the repository root:
# docker build -t registry.nic.cz/turris/user-docs .
# With a built container, you need to log in to GitLab first.
# Use a generated authentication token for this purpose (never use your password).
# https://gitlab.nic.cz/help/user/packages/container_registry/index.md#authenticate-with-the-container-registry
# docker login registry.nic.cz -u <username> -p <token>
# Then you can push the built container to GitLab with:
# docker push registry.nic.cz/turris/user-docs
# Logout from the GitLab server when done:
# docker logout registry.nic.cz
FROM debian:bookworm
ENV HOME=/root
RUN \
apt-get update && \
apt-get -y install --no-install-recommends \
python3-pip python3-setuptools python3-wheel \
git wget \
libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev \
&& \
apt-get clean
ADD requirements.txt /requirements.txt
RUN \
pip3 install --break-system-packages --requirement /requirements.txt && \
rm /requirements.txt
CMD [ "bash" ]