1
1
FROM node:8.16-jessie
2
2
3
- ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,enterpriseinfo,logger,systemlogs,errorlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,assistant,plugin-upload,times-of-day,compliance-hub,video-intelligence-monetization,alerts,onboarding
3
+ ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,enterpriseinfo,logger,systemlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,assistant,times-of-day,compliance-hub,video-intelligence-monetization,alerts,onboarding
4
+ # Enterprise Edition:
5
+ #ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,drill,funnels,concurrent_users,retention_segments,revenue,logger,systemlogs,populator,reports,crashes,push,block,restrict,users,geo,star-rating,slipping-away-users,compare,server-stats,dashboards,assistant,flows,dbviewer,cohorts,crash_symbolication,crashes-jira,groups,white-labeling,alerts,times-of-day,compliance-hub,onboarding,remote-config,formulas,ab-testing
6
+
7
+ USER root
4
8
5
9
# Core dependencies
6
10
## Tini
@@ -24,10 +28,10 @@ ENV COUNTLY_DEFAULT_PLUGINS="${COUNTLY_PLUGINS}"
24
28
ENV COUNTLY_CONFIG_API_API_HOST="0.0.0.0"
25
29
26
30
## The files
27
- RUN mkdir /opt/countly && chown 1001:1001 /opt/countly
28
- USER 1001
31
+ RUN mkdir /opt/countly && chown 1001:0 /opt/countly
32
+ USER 1001:0
29
33
WORKDIR /opt/countly
30
- COPY --chown=1001 . .
34
+ COPY --chown=1001:0 . .
31
35
HEALTHCHECK --start-period=60s CMD curl --fail http://localhost:3001/o/ping || exit 1
32
36
33
37
## API runtime dependencies
@@ -37,9 +41,12 @@ RUN cp -n api/config.sample.js api/config.js && \
37
41
./bin/docker/preinstall.sh
38
42
39
43
USER root
40
- RUN apt-get remove -y git gcc g++ make automake autoconf libtool pkg-config unzip sqlite3 && \
44
+
45
+ RUN ./bin/docker/modify.sh && \
46
+ chown -R 1001:0 /opt/countly && \
47
+ apt-get remove -y git gcc g++ make automake autoconf libtool pkg-config unzip sqlite3 && \
41
48
apt-get autoremove -y && \
42
49
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
43
50
44
- USER 1001
51
+ USER 1001:0
45
52
CMD ["/opt/countly/bin/docker/cmd.sh"]
0 commit comments