diff --git a/linux/mssql-tools/Dockerfile.alpine b/linux/mssql-tools/Dockerfile.alpine index 1fb274f6..7b2c4b51 100644 --- a/linux/mssql-tools/Dockerfile.alpine +++ b/linux/mssql-tools/Dockerfile.alpine @@ -3,26 +3,26 @@ FROM alpine LABEL maintainer="SQL Server Engineering Team" -RUN apk add curl gnupg +RUN echo "Installing needed software" + && apk update --no-cache \ + && add --no-cache curl gnupg && \ -#Download the desired package(s) -RUN curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_18.0.1.1-1_amd64.apk \ - && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/mssql-tools18_18.0.1.1-1_amd64.apk + echo "Download the desired package(s)" \ + && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_18.0.1.1-1_amd64.apk \ + && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/mssql-tools18_18.0.1.1-1_amd64.apk && \ + echo "(Optional) Verify signature, if 'gpg' is missing install it using 'apk add gnupg':" \ + && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_18.0.1.1-1_amd64.sig \ + && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/mssql-tools18_18.0.1.1-1_amd64.sig && \ -#(Optional) Verify signature, if 'gpg' is missing install it using 'apk add gnupg': -RUN curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/msodbcsql18_18.0.1.1-1_amd64.sig \ - && curl -O https://download.microsoft.com/download/b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486/mssql-tools18_18.0.1.1-1_amd64.sig - -RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import - \ + echo "Verifying signature." \ + && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import - \ && gpg --verify msodbcsql18_18.0.1.1-1_amd64.sig msodbcsql18_18.0.1.1-1_amd64.apk \ - && gpg --verify mssql-tools18_18.0.1.1-1_amd64.sig mssql-tools18_18.0.1.1-1_amd64.apk - + && gpg --verify mssql-tools18_18.0.1.1-1_amd64.sig mssql-tools18_18.0.1.1-1_amd64.apk && \ -#Install the package(s) -RUN apk add --allow-untrusted msodbcsql18_18.0.1.1-1_amd64.apk \ - && apk add --allow-untrusted mssql-tools18_18.0.1.1-1_amd64.apk \ + echo "Installing the package(s)" \ + && apk add --no-cache --allow-untrusted msodbcsql18_18.0.1.1-1_amd64.apk \ + && apk add --no-cache --allow-untrusted mssql-tools18_18.0.1.1-1_amd64.apk \ && rm -f msodbcsql18_18.0.1.1-1_amd64.apk mssql-tools18_18.0.1.1-1_amd64.apk - -CMD /bin/bash +CMD ["/bin/bash"] diff --git a/linux/mssql-tools/Dockerfile.debian11 b/linux/mssql-tools/Dockerfile.debian11 index 0469889d..9f2bb076 100644 --- a/linux/mssql-tools/Dockerfile.debian11 +++ b/linux/mssql-tools/Dockerfile.debian11 @@ -3,25 +3,28 @@ FROM debian:11 LABEL maintainer="SQL Server Engineering Team" -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-transport-https debconf-utils gnupg2 - -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list - -# install SQL Server drivers and tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 -RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" - - - -RUN apt-get -y install locales \ +RUN echo "Installing system utilities" + && apt-get update \ + && apt-get install -y curl apt-transport-https debconf-utils gnupg2 && \ + + echo "adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ + + echo "installing SQL Server drivers and tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 \ + && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ + + echo "Configuring locales" \ + && apt-get -y install locales \ + && rm -rf /var/lib/apt/lists/* \ + && locale-gen en_US.UTF-8 \ + && localedef -i en_US -f UTF-8 en_US.UTF-8 && \ + + echo "Cleaning cache" \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN locale-gen en_US.UTF-8 -RUN localedef -i en_US -f UTF-8 en_US.UTF-8 - -CMD /bin/bash +CMD ["/bin/bash"] diff --git a/linux/mssql-tools/Dockerfile.rhel9 b/linux/mssql-tools/Dockerfile.rhel9 index de1a9645..b0aeca45 100644 --- a/linux/mssql-tools/Dockerfile.rhel9 +++ b/linux/mssql-tools/Dockerfile.rhel9 @@ -3,14 +3,14 @@ FROM redhat/ubi9 LABEL maintainer="SQL Server Engineering Team" -# adding custom MS repository -RUN yum install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm +RUN echo "Adding custom MS repository" \ + && yum install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm && \ -# install SQL Server drivers and tools -RUN ACCEPT_EULA=Y dnf install -y msodbcsql18 mssql-tools18 + echo "Installing SQL Server drivers and tools" \ + && ACCEPT_EULA=Y dnf install -y msodbcsql18 mssql-tools18 && \ -# add the binary location to the $PATH -RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" + echo "Adding the binary location to the $PATH" \ + && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" -CMD /bin/bash +CMD ["/bin/bash"] diff --git a/linux/mssql-tools/Dockerfile.ubuntu2004 b/linux/mssql-tools/Dockerfile.ubuntu2004 index e22d9f79..8b7d14af 100644 --- a/linux/mssql-tools/Dockerfile.ubuntu2004 +++ b/linux/mssql-tools/Dockerfile.ubuntu2004 @@ -3,26 +3,28 @@ FROM ubuntu:20.04 LABEL maintainer="SQL Server Engineering Team" -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-transport-https debconf-utils gnupg2 - -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list - -# install SQL Server drivers and tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 -RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" - - - -RUN apt-get -y install locales \ +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-transport-https debconf-utils gnupg2 && \ + + echo "Adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ + + echo "Installing SQL Server drivers and tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 \ + && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ + + echo "Configuring locales" \ + && apt-get -y install locales \ + && rm -rf /var/lib/apt/lists/* \ + && locale-gen en_US.UTF-8 \ + && update-locale LANG=en_US.UTF-8 && \ + + echo "Cleaning cache" \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN locale-gen en_US.UTF-8 -RUN update-locale LANG=en_US.UTF-8 - - -CMD /bin/bash +CMD ["/bin/bash"] diff --git a/linux/mssql-tools/Dockerfile.ubuntu2204 b/linux/mssql-tools/Dockerfile.ubuntu2204 index 71b0e112..450cf6da 100644 --- a/linux/mssql-tools/Dockerfile.ubuntu2204 +++ b/linux/mssql-tools/Dockerfile.ubuntu2204 @@ -3,26 +3,28 @@ FROM ubuntu:22.04 LABEL maintainer="SQL Server Engineering Team" -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-transport-https debconf-utils gnupg2 - -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list - -# install SQL Server drivers and tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 -RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" - - - -RUN apt-get -y install locales \ +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-transport-https debconf-utils gnupg2 && \ + + echo "Adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ + + echo "Install SQL Server drivers and tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 \ + && echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ + + echo "Configuring locales" \ + && apt-get -y install locales \ + && rm -rf /var/lib/apt/lists/* \ + && locale-gen en_US.UTF-8 \ + && update-locale LANG=en_US.UTF-8 && \ + + echo "Cleaning cache" \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN locale-gen en_US.UTF-8 -RUN update-locale LANG=en_US.UTF-8 - - -CMD /bin/bash +CMD ["/bin/bash"] diff --git a/oss-drivers/msphpsql/Dockerfile b/oss-drivers/msphpsql/Dockerfile index c78ce536..73aeda51 100644 --- a/oss-drivers/msphpsql/Dockerfile +++ b/oss-drivers/msphpsql/Dockerfile @@ -1,49 +1,55 @@ # mssql-php-msphpsql # PHP runtime with sqlservr and pdo_sqlsrv to connect to SQL Server FROM ubuntu:16.04 + MAINTAINER SQL Server Connectivity Team -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\ - && rm -rf /var/lib/apt/lists/* +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5 && \ -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list + echo "Adding custom MS repository \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ -# install SQL Server drivers -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql + echo "Installing SQL Server drivers" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql && \ -# install SQL Server tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools -RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" + echo "Installing SQL Server tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y mssql-tools \ + && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ -# php libraries -RUN apt-get update && apt-get install -y \ - php7.0 libapache2-mod-php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-dev \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* + echo "Installing php libraries" \ + && apt-get update \ + && apt-get install -y php7.0 libapache2-mod-php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-dev --no-install-recommends && \ -# install necessary locales -RUN apt-get install -y locales \ + echo "Installing necessary locales" \ + && apt-get install -y locales \ && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ - && locale-gen + && locale-gen && \ + + echo "Installing SQL Server PHP connector module" \ + && pecl install sqlsrv pdo_sqlsrv && \ -# install SQL Server PHP connector module -RUN pecl install sqlsrv pdo_sqlsrv + echo "Initial configuration of SQL Server PHP connector" \ + && echo "extension=/usr/lib/php/20151012/sqlsrv.so" >> /etc/php/7.0/cli/php.ini \ + && echo "extension=/usr/lib/php/20151012/pdo_sqlsrv.so" >> /etc/php/7.0/cli/php.ini && \ -# initial configuration of SQL Server PHP connector -RUN echo "extension=/usr/lib/php/20151012/sqlsrv.so" >> /etc/php/7.0/cli/php.ini -RUN echo "extension=/usr/lib/php/20151012/pdo_sqlsrv.so" >> /etc/php/7.0/cli/php.ini + echo "Installing additional utilities" \ + && apt-get update \ + && apt-get install gettext nano vim -y && \ -# install additional utilities -RUN apt-get update && apt-get install gettext nano vim -y + echo "Cleaning cache" \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* && \ -# add sample code +# Adding sample code RUN mkdir /sample ADD . /sample + WORKDIR /sample -CMD /bin/bash ./entrypoint.sh \ No newline at end of file +CMD /bin/bash ./entrypoint.sh diff --git a/oss-drivers/php-mssql/Dockerfile b/oss-drivers/php-mssql/Dockerfile index 9abd2323..0d2b1611 100644 --- a/oss-drivers/php-mssql/Dockerfile +++ b/oss-drivers/php-mssql/Dockerfile @@ -2,32 +2,34 @@ # PHP runtime with pdo_sqlsrv to connect to SQL Server FROM ubuntu:16.04 -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\ - && rm -rf /var/lib/apt/lists/* +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5 && \ -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list + echo "Adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ -# install SQL Server drivers -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql + echo "Installing SQL Server drivers" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y unixodbc-dev msodbcsql && \ -# php libraries -RUN apt-get update && apt-get install -y \ - php7.0 libapache2-mod-php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-dev \ - --no-install-recommends \ - && rm -rf /var/lib/apt/lists/* + echo "Installing php libraries" \ + && apt-get update \ + && apt-get install -y php7.0 libapache2-mod-php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-dev --no-install-recommends && \ -# install necessary locales -RUN apt-get install -y locales \ + echo "Installing necessary locales" \ + && apt-get install -y locales \ && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ - && locale-gen + && locale-gen && \ -# install SQL Server PHP connector module -RUN pecl install sqlsrv pdo_sqlsrv + echo "Installing SQL Server PHP connector module" \ + && pecl install sqlsrv pdo_sqlsrv && \ -# initial configuration of SQL Server PHP connector -RUN echo "extension=/usr/lib/php/20151012/sqlsrv.so" >> /etc/php/7.0/cli/php.ini -RUN echo "extension=/usr/lib/php/20151012/pdo_sqlsrv.so" >> /etc/php/7.0/cli/php.ini + echo "Initial configuration of SQL Server PHP connector" \ + && echo "extension=/usr/lib/php/20151012/sqlsrv.so" >> /etc/php/7.0/cli/php.ini \ + && echo "extension=/usr/lib/php/20151012/pdo_sqlsrv.so" >> /etc/php/7.0/cli/php.ini && \ + + echo "Cleaning cache" \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* diff --git a/oss-drivers/pyodbc/Dockerfile b/oss-drivers/pyodbc/Dockerfile index 17046730..ecd7ab30 100644 --- a/oss-drivers/pyodbc/Dockerfile +++ b/oss-drivers/pyodbc/Dockerfile @@ -2,44 +2,50 @@ # Python runtime with pyodbc to connect to SQL Server FROM ubuntu:16.04 -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\ - && rm -rf /var/lib/apt/lists/* - -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5 && \ + + echo "Adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ + + echo "Installing SQL Server drivers" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y msodbcsql unixodbc-dev && \ + + echo "Installing SQL Server tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y mssql-tools \ + && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ + + echo "Installing python libraries" \ + && apt-get update \ + && apt-get install -y python-pip python-dev python-setuptools --no-install-recommends && \ + + echo "Installing necessary locales" \ + && apt-get update \ + && apt-get install -y locales \ + && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ + && locale-gen \ + && pip install --upgrade pip && \ -# install SQL Server drivers -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql unixodbc-dev + echo "Installing SQL Server Python SQL Server connector module - pyodbc" \ + && pip install pyodbc && \ -# install SQL Server tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools -RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" + echo "Installing additional utilities" \ + && apt-get update \ + && apt-get install gettext nano vim -y && \ -# python libraries -RUN apt-get update && apt-get install -y \ - python-pip python-dev python-setuptools \ - --no-install-recommends \ + echo "Cleaning cache" \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -# install necessary locales -RUN apt-get update && apt-get install -y locales \ - && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ - && locale-gen -RUN pip install --upgrade pip - -# install SQL Server Python SQL Server connector module - pyodbc -RUN pip install pyodbc - -# install additional utilities -RUN apt-get update && apt-get install gettext nano vim -y - # add sample code RUN mkdir /sample ADD . /sample + WORKDIR /sample -CMD /bin/bash ./entrypoint.sh +CMD ["/bin/bash", "./entrypoint.sh"] diff --git a/oss-drivers/tedious/Dockerfile b/oss-drivers/tedious/Dockerfile index 2f4078d2..1861bf44 100644 --- a/oss-drivers/tedious/Dockerfile +++ b/oss-drivers/tedious/Dockerfile @@ -2,41 +2,45 @@ # Node.js runtime with tedious to connect to SQL Server FROM ubuntu:16.04 -# apt-get and system utilities -RUN apt-get update && apt-get install -y \ - curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5\ - && rm -rf /var/lib/apt/lists/* - -# adding custom MS repository -RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - -RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list +RUN echo "Installing system utilities" \ + && apt-get update \ + && apt-get install -y curl apt-utils apt-transport-https debconf-utils gcc build-essential g++-5 && \ + + echo "Adding custom MS repository" \ + && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list && \ + + echo "Installing SQL Server tools" \ + && apt-get update \ + && ACCEPT_EULA=Y apt-get install -y mssql-tools \ + && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \ + && /bin/bash -c "source ~/.bashrc" && \ + + echo "Installing nodejs libraries" \ + && apt-get update \ + && apt-get install -y nodejs npm --no-install-recommends && \ + + echo "Installing necessary locales" \ + && apt-get install -y locales \ + && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ + && locale-gen && \ -# install SQL Server tools -RUN apt-get update && ACCEPT_EULA=Y apt-get install -y mssql-tools -RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc -RUN /bin/bash -c "source ~/.bashrc" + echo "Installing additional utilities" \ + && apt-get update \ + && apt-get install gettext nano vim -y && \ -# nodejs libraries -RUN apt-get update && apt-get install -y \ - nodejs npm \ - --no-install-recommends \ + echo "Cleaning cache" \ + && apt-get clean \ && rm -rf /var/lib/apt/lists/* -# install necessary locales -RUN apt-get install -y locales \ - && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \ - && locale-gen - -# install additional utilities -RUN apt-get update && apt-get install gettext nano vim -y - # add sample code RUN mkdir /sample ADD . /sample + WORKDIR /sample # start project and install tedious -RUN npm init -y -RUN npm install tedious +RUN npm init -y && \ + npm install tedious -CMD /bin/bash ./entrypoint.sh \ No newline at end of file +CMD /bin/bash ./entrypoint.sh