File size: 790 Bytes
af136d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# SQL Server 2022 with Full-Text Search
# Based on: https://github.com/1nbuc/mssql-docker-fts

FROM amd64/ubuntu:22.04

# Install prerequisites for repo setup
RUN export DEBIAN_FRONTEND=noninteractive && \
    apt-get update && \
    apt-get install -yq curl apt-transport-https gnupg

# Add Microsoft repository for SQL Server 2022
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list | tee /etc/apt/sources.list.d/mssql-server.list

# Install SQL Server and Full-Text Search
RUN apt-get update && \
    apt-get install -y mssql-server mssql-server-fts

# Cleanup
RUN apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Run as mssql user
USER mssql

CMD ["/opt/mssql/bin/sqlservr"]