Skip to content

Commit 0801be2

Browse files
committed
MS SQL 2025 container
1 parent 0358f55 commit 0801be2

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Containers/mssql/do-mssql-2025

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM mcr.microsoft.com/mssql/server:2025-latest
2+
USER root
3+
4+
# See https://github.com/microsoft/mssql-docker/blob/master/linux/preview/examples/mssql-agent-fts-ha-tools/Dockerfile
5+
# for details
6+
RUN export DEBIAN_FRONTEND=noninteractive
7+
RUN apt-get update
8+
9+
#Actualize time zone database
10+
RUN apt-get install -y tzdata
11+
RUN apt-get install -yq curl
12+
RUN apt-get install -yq apt-transport-https
13+
RUN apt-get install -y gnupg2
14+
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
15+
RUN curl https://packages.microsoft.com/config/ubuntu/24.04/mssql-server-2025.list | tee /etc/apt/sources.list.d/mssql-server.list
16+
RUN apt-get update
17+
RUN apt-get install -y mssql-server-fts
18+
RUN apt-get clean
19+
RUN rm -rf /var/lib/apt/lists
20+
21+
# Create a config directory
22+
RUN mkdir -p /usr/config
23+
WORKDIR /usr/config
24+
25+
# Bundle config source
26+
COPY configure-db.sh /usr/config/
27+
COPY entrypoint.sh /usr/config/
28+
COPY setup.sql /usr/config/
29+
30+
# Grant permissions for to our scripts to be executable
31+
RUN chmod +x /usr/config/entrypoint.sh
32+
RUN chmod +x /usr/config/configure-db.sh
33+
34+
ENTRYPOINT ["./entrypoint.sh"]

0 commit comments

Comments
 (0)