Debian Codegraph @

tools/dockerfile/interoptest/grpc_interop_nodepurejs/Dockerfile

raw
1 # Copyright 2015 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 FROM debian:jessie
16
17 #=================
18 # Basic C core dependencies
19
20 # C/C++ dependencies according to https://github.com/grpc/grpc/blob/master/BUILDING.md
21 RUN apt-get update && apt-get install -y \
22 build-essential \
23 autoconf \
24 libtool \
25 pkg-config \
26 && apt-get clean
27
28 # GCC
29 RUN apt-get update && apt-get install -y \
30 gcc \
31 g++ \
32 && apt-get clean
33
34 # libc6
35 RUN apt-get update && apt-get install -y \
36 libc6 \
37 libc6-dbg \
38 libc6-dev \
39 && apt-get clean
40
41 # Tools
42 RUN apt-get update && apt-get install -y \
43 bzip2 \
44 curl \
45 dnsutils \
46 git \
47 lcov \
48 make \
49 strace \
50 time \
51 unzip \
52 wget \
53 zip \
54 && apt-get clean
55
56
57 RUN mkdir /var/local/jenkins
58
59 #==================
60 # Node dependencies
61
62 # Install nvm
63 RUN groupadd -g 999 appuser && useradd -r -u 999 -g appuser appuser
64 RUN mkdir -p /home/appuser && chown appuser /home/appuser
65 RUN chmod 777 /root
66 USER appuser
67 RUN touch ~/.profile
68 RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
69 # Install all versions of node that we want to test
70 RUN /bin/bash -l -c "nvm install 16 && npm config set cache /tmp/npm-cache"
71 RUN /bin/bash -l -c "nvm alias default 16"
72 # Define the default command.
73 CMD ["bash"]