-
Notifications
You must be signed in to change notification settings - Fork 286
/
Dockerfile
43 lines (32 loc) · 1.06 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
41
42
43
FROM python:3.10.9-bullseye
RUN apt-get update \
&& apt-get upgrade -yq \
&& apt-get -y install locales \
&& apt-get -y install gettext \
&& apt-get -y install poedit \
&& apt-get install -yq --no-install-recommends \
nodejs \
npm \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& sed -i -e 's/# en_US ISO-8859-1/en_US ISO-8859-1/' /etc/locale.gen \
&& sed -i -e 's/# en_US.ISO-8859-15 ISO-8859-15/en_US.ISO-8859-15 ISO-8859-15/' /etc/locale.gen \
&& dpkg-reconfigure --frontend=noninteractive locales \
&& update-locale
WORKDIR /var/www/app
COPY requirements.txt ./requirements.txt
RUN pip install --upgrade pip pip-tools \
&& pip-sync
COPY package.json ./package.json
RUN npm install \
&& npm install -g gulp
COPY rootfs /
COPY . .
RUN gulp local
ENTRYPOINT ["/entrypoint.sh"]
HEALTHCHECK \
--start-period=15s \
--timeout=2s \
--retries=3 \
--interval=5s \
CMD /healthcheck.sh