Deploy Plausible Analytics with local DB files
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -89,8 +89,9 @@ RUN mkdir -p /lib64 \
|
|
| 89 |
&& ln -s /usr/bin/clickhouse /usr/bin/clickhouse-server \
|
| 90 |
&& ln -s /usr/bin/clickhouse /usr/bin/clickhouse-client \
|
| 91 |
&& mkdir -p /etc/clickhouse-server \
|
| 92 |
-
&&
|
| 93 |
COPY --chmod=644 ./rel/clickhouse/config.xml ./rel/clickhouse/users.xml /etc/clickhouse-server/
|
|
|
|
| 94 |
|
| 95 |
COPY --from=buildcontainer --chmod=555 /app/_build/${MIX_ENV}/rel/plausible /app
|
| 96 |
COPY --chmod=755 ./rel/docker-entrypoint.sh /entrypoint.sh
|
|
|
|
| 89 |
&& ln -s /usr/bin/clickhouse /usr/bin/clickhouse-server \
|
| 90 |
&& ln -s /usr/bin/clickhouse /usr/bin/clickhouse-client \
|
| 91 |
&& mkdir -p /etc/clickhouse-server \
|
| 92 |
+
&& chown -R plausible:nogroup /etc/clickhouse-server
|
| 93 |
COPY --chmod=644 ./rel/clickhouse/config.xml ./rel/clickhouse/users.xml /etc/clickhouse-server/
|
| 94 |
+
RUN chown -R plausible:nogroup /etc/clickhouse-server
|
| 95 |
|
| 96 |
COPY --from=buildcontainer --chmod=555 /app/_build/${MIX_ENV}/rel/plausible /app
|
| 97 |
COPY --chmod=755 ./rel/docker-entrypoint.sh /entrypoint.sh
|