We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c5b3f6 commit 1bd223fCopy full SHA for 1bd223f
1 file changed
Dockerfile
@@ -8,10 +8,15 @@ RUN apt-get update && \
8
apt-get install -y gettext pwgen && \
9
rm -rf /var/lib/apt/lists/*
10
11
-# Copy in scripts
12
-COPY docker-entrypoint.sh /usr/local/bin/
13
-COPY --chmod=0664 --chown=1000:1000 setup.sql restore.sql /opt/mssql/etc/
+# Copy in scripts. Use 1000:1000 ownership to align with upstream MSSQL image (reasons for this choice upstream unclear)
+RUN mkdir -p /opt/mssql/etc && \
+ chown 1000:1000 /opt/mssql/etc
14
+COPY --chmod=0664 --chown=1000:1000 \
15
+ setup.sql \
16
+ restore.sql \
17
+ /opt/mssql/etc/
18
COPY --chmod=0755 --chown=root:root \
19
+ docker-entrypoint.sh \
20
healthcheck.sh \
21
backup.sh \
22
/usr/local/bin/
0 commit comments