Skip to content

Instantly share code, notes, and snippets.

@a5ync
Created October 22, 2019 23:29
Show Gist options
  • Select an option

  • Save a5ync/c632593a9ce7e27d60592874b070df3e to your computer and use it in GitHub Desktop.

Select an option

Save a5ync/c632593a9ce7e27d60592874b070df3e to your computer and use it in GitHub Desktop.
Docker image build for sqlpackage tool (dacpac/bacpac import/export)
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