@@ -15,12 +15,11 @@ ENTRYPOINT ["/tini", "-v", "--"]
15
15
RUN apt-get update && apt-get -y install sendmail sqlite3 gcc-4.8 g++-4.8 && \
16
16
export CXX="g++-4.8" && \
17
17
export CC="gcc-4.8" && \
18
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90 && \
19
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
18
+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
20
19
21
20
# Required by push plugin
22
- RUN git clone https://github.com/nghttp2/nghttp2.git $DIR /nghttp2 && \
23
- cd $DIR /nghttp2 && \
21
+ RUN git clone https://github.com/nghttp2/nghttp2.git /tmp /nghttp2 && \
22
+ cd /tmp /nghttp2 && \
24
23
git checkout tags/v1.30.0 && \
25
24
export CFLAGS="-g -O2 -fPIC" && export CPPFLAGS="-fPIC" && autoreconf -i && automake && autoconf && ./configure --disable-examples --disable-app && make && make install
26
25
@@ -33,13 +32,18 @@ RUN mkdir /opt/countly && chown 1001:1001 /opt/countly
33
32
USER 1001
34
33
WORKDIR /opt/countly
35
34
COPY --chown=1001 . .
36
- HEALTHCHECK --start-period=120s CMD curl --fail http://localhost:3001/o/ping || exit 1
35
+ HEALTHCHECK --start-period=60s CMD curl --fail http://localhost:3001/o/ping || exit 1
37
36
38
37
## API runtime dependencies
39
38
RUN cp -n api/config.sample.js api/config.js && \
40
39
cp -n frontend/express/config.sample.js frontend/express/config.js && \
41
40
HOME=/tmp npm install && \
42
- ./bin/docker/preinstall.sh && \
43
- rm -rf /tmp/*
41
+ ./bin/docker/preinstall.sh
42
+
43
+ USER root
44
+ RUN apt-get remove -y git cpp-4.8 gcc-4.8 g++-4.8 gcc g++ make automake autoconf libtool pkg-config unzip sqlite3 && \
45
+ apt-get autoremove -y && \
46
+ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
44
47
48
+ USER 1001
45
49
CMD ["/opt/countly/bin/docker/cmd.sh"]
0 commit comments