-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile-app
53 lines (36 loc) · 1.25 KB
/
Dockerfile-app
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
49
50
51
FROM python:3.11.4
LABEL maintainer="Alessio Gerace <a.gerace@inrim.it>"
ARG APP_GROUP
ARG APP_NAME
ARG TZ
ARG REQUIREMENTS
ENV REQUIREMENTS_SCRIPT=${REQUIREMENTS}
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update; \
apt-get upgrade; \
apt-get install -y \
build-essential python3-dev git \
ldap-utils libldap-dev libsasl2-dev python3-dev \
gcc g++ locales locales-all; \
apt-get clean
ENV LC_ALL it_IT.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
COPY ./$REQUIREMENTS_SCRIPT /$REQUIREMENTS_SCRIPT
RUN $REQUIREMENTS_SCRIPT
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
COPY ./gunicorn_conf.py /gunicorn_conf.py
WORKDIR /app
ENV PYTHONPATH=/app
EXPOSE 80
COPY ./web-client /app
COPY ./web-client/${APP_GROUP}/${APP_NAME}/docker/config.json /app/config.json
#RUN curl -k -O -L https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb && \
# apt-get install -y --no-install-recommends ./wkhtmltox_0.12.6-1.buster_amd64.deb && \
# rm ./wkhtmltox_0.12.6-1.buster_amd64.deb
RUN wkhtmltopdf --version
CMD ["/start.sh"]