forked from INRIM/service-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (28 loc) · 1.02 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
34
35
36
37
38
39
40
FROM python:3.11.3
LABEL maintainer="Alessio Gerace <[email protected]>"
ARG REQUIREMENTS
ENV REQUIREMENTS_SCRIPT=${REQUIREMENTS}
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DEBIAN_FRONTEND noninteractive
ARG TZ
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update; \
apt-get install -y \
build-essential python3-dev git wget \
ldap-utils libldap-dev libsasl2-dev python3-dev python3-pip \
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
RUN mkdir -p /root/.docker/cli-plugins/
RUN wget -O /root/.docker/cli-plugins/docker-compose https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-linux-aarch64
RUN chmod a+x /root/.docker/cli-plugins/docker-compose
COPY ./start.sh /start.sh
COPY ./gunicorn_conf.py /gunicorn_conf.py
COPY . /apps
RUN $REQUIREMENTS_SCRIPT
# RUN python-on-whales download-cli
ENV PYTHONPATH=/app
ENTRYPOINT ["/start.sh"]