SQL Server
發表於 : 2018-12-04 11:26:18
https://laravel-news.com/install-micros ... p-7-docker
png錯誤
https://stackoverflow.com/questions/507 ... em-is-requ
授權要輸入Y
https://unix.stackexchange.com/question ... um-package
png錯誤
https://stackoverflow.com/questions/507 ... em-is-requ
授權要輸入Y
https://unix.stackexchange.com/question ... um-package
代碼: 選擇全部
RUN apt-get update && apt-get install -y gnupg
# Microsoft SQL Server Prerequisites
RUN apt-get update \
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& curl https://packages.microsoft.com/config/debian/9/prod.list \
> /etc/apt/sources.list.d/mssql-release.list \
&& apt-get install -y --no-install-recommends \
locales \
apt-transport-https \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get -y --no-install-recommends install \
unixodbc-dev \
msodbcsql17
RUN docker-php-ext-install mbstring pdo pdo_mysql \
&& pecl install sqlsrv pdo_sqlsrv xdebug \
&& docker-php-ext-enable sqlsrv pdo_sqlsrv xdebug