-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 809 Bytes
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
# Builds .deb and installs dependencies to support release
FROM ubuntu:20.04
ARG AZURE_STORAGE_CONNECTION_STRING
ARG MSSQL_CLI_OFFICIAL_BUILD
ENV AZURE_STORAGE_CONNECTION_STRING=$AZURE_STORAGE_CONNECTION_STRING
ENV MSSQL_CLI_OFFICIAL_BUILD=$MSSQL_CLI_OFFICIAL_BUILD
RUN echo "connection string: ${AZURE_STORAGE_CONNECTION_STRING}"
RUN echo "official build: ${MSSQL_CLI_OFFICIAL_BUILD}"
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" TZ="America/Pacific" \
apt-get -y -q install python3-all python3-pip python3-setuptools nano git sudo wget libssl-dev libffi-dev debhelper
# Install pip and stdeb
RUN python3 -m pip install --upgrade pip
# Build .deb
RUN mkdir /Repos
RUN mkdir /Repos/mssql-cli
ADD . /Repos/mssql-cli
WORKDIR /Repos/mssql-cli
RUN build_scripts/debian/build.sh $(pwd)
WORKDIR /