We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f7e8c2 commit 1aabb56Copy full SHA for 1aabb56
1 file changed
Dockerfile
@@ -3,4 +3,16 @@ FROM proxysql/proxysql:3-debian@sha256:1a035a8c1f834abecec11ba18fccb541658cf6ed7
3
# Install envsubst (part of gettext-base package)
4
RUN apt-get update && \
5
apt-get install -y --no-install-recommends gettext-base && \
6
- rm -rf /var/lib/apt/lists/*
+ rm -rf /var/lib/apt/lists/*
7
+
8
+RUN addgroup --gid 1000 appgroup \
9
+ && adduser --gid 1000 --uid 1000 --disabled-password --gecos appuser appuser
10
11
+# Create directories and set permissions for user 1000
12
+RUN mkdir -p /etc/proxysql-init /var/lib/proxysql && \
13
+ chown -R 1000:1000 /etc/proxysql-init && \
14
+ chmod -R 755 /etc/proxysql-init && \
15
+ chown -R 1000:1000 /var/lib/proxysql && \
16
+ chmod -R 755 /var/lib/proxysql
17
18
+USER 1000
0 commit comments