FROM mcr.microsoft.com/mssql/server:2019-latest USER root # Create a config directory RUN mkdir -p /usr/config WORKDIR /usr/config # Bundle config source COPY entrypoint.sh /usr/config COPY configure-db.sh /usr/config COPY setup.sql /usr/config/ # Grant permissions for to our scripts to be executable RUN chmod +x /usr/config/entrypoint.sh RUN chmod +x /usr/config/configure-db.sh ENTRYPOINT ["./entrypoint.sh"]