mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
32 lines
866 B
Docker
32 lines
866 B
Docker
FROM ubuntu:16.04
|
|
|
|
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 update
|
|
RUN ACCEPT_EULA=Y apt-get install -y \
|
|
msodbcsql \
|
|
unixodbc-dev
|
|
|
|
#python part of the game
|
|
RUN apt-get update && apt-get install -y \
|
|
python3.5 \
|
|
python3-pip \
|
|
python3-setuptools
|
|
|
|
RUN apt-get install -y locales \
|
|
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
|
|
&& locale-gen
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
RUN mkdir /code
|
|
WORKDIR /code
|
|
ADD requirements.txt /code/
|
|
RUN pip3 install -r requirements.txt
|