File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 11FROM python:3.8-alpine
22
3- ARG buildDeps='g++'
3+ ARG buildDeps='g++ gnupg curl '
44
55WORKDIR /usr/src/app
66
77COPY . .
88
99RUN apk update \
1010 && apk add --no-cache $buildDeps gcc unixodbc-dev \
11- && pip3 install --no-cache-dir -r requirements/prod.txt \
11+ && pip3 install --no-cache-dir -r requirements/prod.txt \
12+ && curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.2.1-1_amd64.apk \
13+ && curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.2.1-1_amd64.apk \
14+ && curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.5.2.1-1_amd64.sig \
15+ && curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.5.2.1-1_amd64.sig \
16+ && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import - \
17+ && gpg --verify msodbcsql17_17.5.2.1-1_amd64.sig msodbcsql17_17.5.2.1-1_amd64.apk \
18+ && gpg --verify mssql-tools_17.5.2.1-1_amd64.sig mssql-tools_17.5.2.1-1_amd64.apk \
19+ && apk add --no-cache --allow-untrusted msodbcsql17_17.5.2.1-1_amd64.apk \
20+ && apk add --no-cache --allow-untrusted mssql-tools_17.5.2.1-1_amd64.apk \
21+ && rm msodbcsql17_17.5.2.1-1_amd64.apk mssql-tools_17.5.2.1-1_amd64.apk msodbcsql17_17.5.2.1-1_amd64.sig mssql-tools_17.5.2.1-1_amd64.sig \
1222 && apk del $buildDeps \
1323 && rm -rfv /root/.cache/pip/* && \
1424find /usr/local \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rfv '{}' \+
You can’t perform that action at this time.
0 commit comments