2021-05-27 10:49:22 +03:00
|
|
|
FROM node:12.22-buster
|
2019-05-16 10:45:29 +03:00
|
|
|
|
|
|
|
ARG gcloud_version="207.0.0"
|
|
|
|
|
2018-07-03 20:10:13 +03:00
|
|
|
# update npm
|
2021-04-12 21:48:59 +03:00
|
|
|
RUN npm install -g npm@6
|
2018-07-03 20:10:13 +03:00
|
|
|
|
2018-07-10 13:01:02 +03:00
|
|
|
# install dependencies
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2021-04-12 21:48:59 +03:00
|
|
|
apt-transport-https \
|
|
|
|
ca-certificates \
|
2021-05-27 10:49:22 +03:00
|
|
|
curl \
|
2018-07-10 13:01:02 +03:00
|
|
|
netcat \
|
|
|
|
libpq5 \
|
|
|
|
libgtk2.0-0 \
|
|
|
|
libnotify-dev \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libnss3 \
|
|
|
|
libxss1 \
|
|
|
|
libasound2 \
|
|
|
|
xvfb \
|
2019-05-16 10:45:29 +03:00
|
|
|
&& curl -Lo /tmp/gcloud-${gcloud_version}.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${gcloud_version}-linux-x86_64.tar.gz \
|
|
|
|
&& tar -xzf /tmp/gcloud-${gcloud_version}.tar.gz -C /usr/local \
|
|
|
|
&& /usr/local/google-cloud-sdk/install.sh \
|
2021-02-24 10:41:45 +03:00
|
|
|
&& curl -s https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
|
|
|
&& curl -s https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
|
|
|
&& apt-get update \
|
2021-04-12 21:48:59 +03:00
|
|
|
&& ACCEPT_EULA=Y apt-get install -y libkrb5-3 libnuma1 unixodbc-dev msodbcsql17 \
|
2019-05-16 10:45:29 +03:00
|
|
|
&& apt-get -y auto-remove \
|
|
|
|
&& apt-get -y clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& rm -rf /usr/share/doc/ \
|
|
|
|
&& rm -rf /usr/share/man/ \
|
|
|
|
&& rm -rf /usr/share/locale/
|
|
|
|
|
2021-02-24 10:41:45 +03:00
|
|
|
ENV PATH "/usr/local/google-cloud-sdk/bin:$PATH"
|