FROM mcr.microsoft.com/mssql/server:2022-latest USER root # update apt RUN apt-get update && apt-get install -y apt-utils # install lib RUN DEBIAN_FRONTEND=noninteractive apt-get install -y sudo \ curl \ dialog \ gpg \ ca-certificates \ lsb-release \ locales # set locale RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen RUN locale-gen ENV LANG=en_US.utf8 # install nfs & iscsi RUN DEBIAN_FRONTEND=noninteractive apt-get install -y nfs-common open-iscsi # mssql keys RUN curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc # mssql repos RUN curl -fsSL https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list | sudo tee /etc/apt/sources.list.d/mssql-server-2022.list RUN curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list EXPOSE 1433 # USER mssql # Run SQL Server process # CMD ["/opt/mssql/bin/sqlservr"]