Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 85bf702

Browse files
chore: image versioning change
1 parent b9ce8b3 commit 85bf702

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

database/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
FROM mcr.microsoft.com/mssql-tools:latest
1+
FROM mcr.microsoft.com/mssql-tools:v1
22

33
# Use root initially to set permissions
44
USER root
55
WORKDIR /database
66
COPY db-setup-entrypoint.sh /database/
77
COPY create_database_statement.sql /database/
8-
RUN chmod +x /database/db-setup-entrypoint.sh
98

10-
# Create a non-root user if needed (mssql-tools doesn't come with a default non-root user)
11-
RUN useradd -m -s /bin/bash mssqltools && \
9+
RUN chmod +x /database/db-setup-entrypoint.sh && \
10+
useradd -m -s /bin/bash mssqltools && \
1211
chown -R mssqltools:mssqltools /database
1312

1413
# Switch to non-root user for security

0 commit comments

Comments
 (0)