Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mssql-docker using alpine image #649

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions linux/mssql-tools/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Builder
FROM alpine:3.8 AS BUILDER

WORKDIR /tmp

RUN apk update
RUN apk add --no-cache curl \
build-base \
unixodbc-dev \
unixodbc \
freetds-dev \
gnupg

RUN curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.6.1.1-1_amd64.apk \
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.6.1.1-1_amd64.apk \
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.6.1.1-1_amd64.sig \
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.6.1.1-1_amd64.sig

RUN https://packages.microsoft.com/keys/microsoft.asc | gpg --import - \
&& gpg --verify msodbcsql17_17.6.1.1-1_amd64.sig msodbcsql17_17.6.1.1-1_amd64.apk \
&& gpg --verify mssql-tools_17.6.1.1-1_amd64.sig mssql-tools_17.6.1.1-1_amd64.apk

RUN apk add --allow-untrusted msodbcsql17_17.6.1.1-1_amd64.apk \
&&apk add --allow-untrusted mssql-tools_17.6.1.1-1_amd64.apk


RUN rm -rf /var/cache/apk/*

# Application
FROM alpine:3.8 AS APP
WORKDIR /app
ENV TZ UTC
RUN apk add --no-cache bash tzdata

ENTRYPOINT [ "bash" ]