Debian Codegraph @

tests/mssql/Dockerfile

raw
1 ARG VERSION
2 FROM mcr.microsoft.com/mssql/server:${VERSION}
3
4 # Create a config directory
5 RUN mkdir -p /usr/config
6 WORKDIR /usr/config
7
8 # Bundle config source
9 COPY mssql/entrypoint.sh /usr/config/entrypoint.sh
10 COPY mssql/configure-db.sh /usr/config/configure-db.sh
11 COPY mssql/setup.sql /usr/config/setup.sql
12
13 # Grant permissions for to our scripts to be executable
14 USER root
15 RUN chmod +x /usr/config/entrypoint.sh
16 RUN chmod +x /usr/config/configure-db.sh
17 RUN chown 10001 /usr/config/entrypoint.sh
18 RUN chown 10001 /usr/config/configure-db.sh
19 USER 10001
20
21 ENTRYPOINT ["/usr/config/entrypoint.sh"]