This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (33 loc) · 2.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM mcr.microsoft.com/dotnet/core/sdk:3.1
USER root
ENV GRPC_VERSION v1.31.x
ENV NODE_VERSION 14.x
RUN curl -fsSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN apt-get update \
&& apt-get install -y build-essential autoconf libtool pkg-config wget git unzip libatomic1 libgflags-dev apt-utils apt-transport-https ca-certificates gnupg2 software-properties-common rsync openssh-client \
&& add-apt-repository "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
&& curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - \
&& apt-get install -y --no-install-recommends docker-ce-cli libc6 libgcc1 libgssapi-krb5-2 libicu63 libssl1.1 libstdc++6 \
google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 nodejs zlib1g \
php-cli php-gd php-gmp php-pgsql php-mysql php-soap php-zip php-xsl php-opcache php-bcmath php-mysqli php-exif php-intl php-redis php-curl php-mbstring \
&& cd /tmp \
&& mkdir grpc \
&& git clone --recursive -b ${GRPC_VERSION} https://github.com/grpc/grpc \
&& cd grpc \
&& git submodule update --init \
&& make grpc_php_plugin \
&& cp bins/opt/grpc_php_plugin /usr/local/bin/grpc_php_client_plugin \
&& cp bins/opt/protobuf/protoc /usr/local/bin/protoc \
&& mkdir -p /opt/include/google/protobuf \
&& cp third_party/protobuf/src/google/protobuf/*.proto /opt/include/google/protobuf \
&& rm -rf /tmp/* \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false software-properties-common \
&& curl -sL https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc && chmod +x /usr/local/bin/mc
# Install Composer and plugins
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -- --filename=composer
RUN composer global require "fxp/composer-asset-plugin:^1.4.2" --prefer-dist
RUN composer global require "hirak/prestissimo:^0.3" --prefer-dist
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable