Created
October 22, 2019 23:29
-
-
Save a5ync/c632593a9ce7e27d60592874b070df3e to your computer and use it in GitHub Desktop.
Docker image build for sqlpackage tool (dacpac/bacpac import/export)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:latest | |
| WORKDIR / | |
| RUN wget -q -O sqlpackage.zip https://go.microsoft.com/fwlink/?linkid=873926 | |
| RUN mkdir /opt/sqlpackage | |
| RUN unzip -qq sqlpackage.zip -d /opt/sqlpackage | |
| FROM mcr.microsoft.com/dotnet/core/runtime-deps:2.1 | |
| RUN apt-get -qq update | |
| # I don't understand why libunwind is required but it is | |
| RUN apt-get -qq install libunwind8 | |
| COPY --from=0 /opt/sqlpackage /opt/sqlpackage | |
| RUN chmod +x /opt/sqlpackage/sqlpackage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment