-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (36 loc) · 1.12 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
37
38
39
40
41
FROM python:3.8-slim-buster
RUN apt-get update --fix-missing \
&& apt-get -y install --no-install-recommends \
apt-transport-https \
bash \
procps \
jq \
curl \
telnet \
openssh-client \
build-essential \
gosu \
git \
unixodbc-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& python -m pip install \
requests==2.23.0 \
numpy==1.19.5 \
pandas==1.2.1 \
pylint==2.6.0 \
pre-commit==2.7.1 \
pyodbc==4.0.32 \
azure-identity==1.6.1 \
azure-keyvault-secrets==4.3.0
# Azure CLI
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
# Microsoft ODBC driver
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update \
&& ACCEPT_EULA=Y apt-get install msodbcsql17 --assume-yes
COPY files/entrypoint.sh .
COPY files/bash_prompt.sh /etc/profile.d/
COPY files/profile /etc/profile
WORKDIR /app
CMD ["/bin/sh", "/entrypoint.sh" ]