forked from higress-group/higress-group.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Base
35 lines (25 loc) · 859 Bytes
/
Dockerfile-Base
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
FROM debian:latest
SHELL ["/bin/bash", "-c"]
RUN apt-get update \
&& apt-get install -y curl python2 \
&& ln -s /usr/bin/python2 /usr/bin/python \
&& apt-get -y autoclean
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 8.16.0
ENV NVM_INSTALL_PATH $NVM_DIR/versions/node/v$NODE_VERSION
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_INSTALL_PATH/lib/node_modules
ENV PATH $NVM_INSTALL_PATH/bin:$PATH
RUN node -v
RUN npm -v
WORKDIR /higress
COPY . .
RUN npm config set registry https://registry.npmmirror.com
RUN npm install --save-dev @babel/core
RUN npm install [email protected] -g --unsafe-perm
RUN npm i -g --unsafe-perm