-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 1.09 KB
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes
# Install default modules
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
libcurl4 \
libicu60 \
libunwind8 \
netcat \
libssl1.0 \
wget \
libgdiplus \
unzip
# Install SqlPackage
RUN wget -O sqlpackage.zip https://go.microsoft.com/fwlink/?linkid=2143497
RUN unzip sqlpackage.zip -d /opt/sqlpackage
RUN chmod +x /opt/sqlpackage/sqlpackage
RUN ln -s /opt/sqlpackage/sqlpackage /usr/local/bin/sqlpackage
RUN rm sqlpackage.zip
# Install SQLCMD
RUN apt install -y gnupg gnupg1 gnupg2
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
RUN apt update && apt upgrade -y
RUN ACCEPT_EULA=Y apt install mssql-tools unixodbc-dev
RUN ln -s /opt/mssql-tools/bin/sqlcmd /usr/local/bin/sqlcmd
WORKDIR /home