-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile-webclient
45 lines (28 loc) · 1.17 KB
/
Dockerfile-webclient
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
FROM python:3.11.3
LABEL maintainer="Alessio Gerace <a.gerace@inrim.it>"
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
ARG TZ
ARG REQUIREMENTS
ENV REQUIREMENTS_SCRIPT=${REQUIREMENTS}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get install -y build-essential python3-dev git wget curl
RUN apt-get install -y ldap-utils libldap-dev libsasl2-dev python3-dev python3-pip python3-wheel
RUN apt-get install -y xfonts-75dpi libxrender1 fontconfig xfonts-base
RUN apt-get install -y gcc g++ locales locales-all
RUN apt-get clean
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bullseye_$(dpkg --print-architecture).deb
RUN dpkg -i wkhtmltox_0.12.6.1-3.bullseye_$(dpkg --print-architecture).deb
RUN rm ./wkhtmltox_0.12.6.1-3.bullseye_$(dpkg --print-architecture).deb
RUN wkhtmltopdf --version
ENV LC_ALL it_IT.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
COPY ./start.sh /start.sh
COPY ./gunicorn_conf.py /gunicorn_conf.py
COPY . /apps
RUN /apps/$REQUIREMENTS_SCRIPT 'web-client'
ENV PYTHONPATH=/app
ENTRYPOINT ["/start.sh"]