dbutils.dockerfile 1.0 KB

1234567891011121314151617181920
  1. FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
  2. WORKDIR /root
  3. ADD ./res/azureds.tgz .
  4. COPY res/altersqlproj.sh /tmp/
  5. COPY res/id_rsa /root/.ssh/
  6. ARG TZ=Europe/London
  7. RUN touch /root/.ssh/known_hosts \
  8. && ssh-keyscan -T 60 bitbucket.org >> /root/.ssh/known_hosts \
  9. && chmod 600 /root/.ssh/* \
  10. && curl -s https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
  11. && curl -s https://packages.microsoft.com/config/ubuntu/18.04/prod.list | tee /etc/apt/sources.list.d/msprod.list \
  12. && apt-get update && ACCEPT_EULA=y DEBIAN_FRONTEND=noninteractive apt-get install -y mssql-tools unixodbc-dev unzip libunwind8 vim \
  13. && wget --progress=bar:force -q -O sqlpackage.zip https://go.microsoft.com/fwlink/?linkid=2143497 \
  14. && unzip -qq sqlpackage.zip -d /opt/sqlpackage \
  15. && rm sqlpackage.zip \
  16. && chmod +x /opt/sqlpackage/sqlpackage \
  17. && ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
  18. && echo $TZ > /etc/timezone
  19. COPY res/dacpacentrypoint.sh /entrypoint.sh
  20. ENTRYPOINT ["bash", "/entrypoint.sh"]