Skip to content

Instantly share code, notes, and snippets.

@gabynevada
Created September 18, 2021 14:08
Show Gist options
  • Save gabynevada/294114cc8dc73950f080026770168306 to your computer and use it in GitHub Desktop.
Save gabynevada/294114cc8dc73950f080026770168306 to your computer and use it in GitHub Desktop.
Docker MSSQL Server 2019 with Full Text Search (FTS) docker file
# From official Microsoft repository
FROM mcr.microsoft.com/mssql/server:2019-latest
USER root
RUN export DEBIAN_FRONTEND="noninteractive"
RUN apt-get update
RUN apt-get install -y curl gnupg
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list | tee /etc/apt/sources.list.d/mssql-server.list
RUN apt-get update
# Install optional packages. Comment out the ones you don't need
# RUN apt-get install -y mssql-server-agent
# RUN apt-get install -y mssql-server-ha
RUN apt-get install -y mssql-server-fts
# Run SQL Server process
CMD /opt/mssql/bin/sqlservr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment