mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
20 lines
782 B
Docker
20 lines
782 B
Docker
FROM microsoft/mssql-server-linux:latest
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
apt-transport-https
|
|
|
|
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux/installing-the-microsoft-odbc-driver-for-sql-server-on-linux
|
|
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
|
|
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
|
|
|
|
RUN apt-get install -y locales \
|
|
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
|
|
&& locale-gen
|
|
|
|
ENV PATH="/opt/mssql-tools/bin:${PATH}"
|
|
|
|
RUN mkdir -p /var/opt/mssql/backup
|
|
WORKDIR /var/opt/mssql/backup
|
|
RUN curl -L -o AdventureWorksDW2017.bak https://github.com/Microsoft/sql-server-samples/releases/download/adventureworks/AdventureWorksDW2017.bak
|