File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change 1- FROM node:12.16.1
2- LABEL version="1.2"
3- LABEL description="Projects microservice"
4- RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
5-
6- RUN apt-get update && \
7- apt-get upgrade -y
8-
9- # install aws
10- RUN apt-get install -y \
11- ssh \
12- python \
13- python-dev \
14- python-pip
15-
16- RUN pip install awscli
17-
18- RUN apt-get install libpq-dev
1+ FROM debian:11.6
2+ ENV NVM_VERSION=v0.39.3
3+ ENV NODE_VERSION=12.16.1
4+ RUN apt update
5+ RUN apt install -y \
6+ gnupg curl wget netbase procps git \
7+ apt-transport-https ca-certificates openssh-client
8+ yarn \
9+ python3-pip
10+ RUN apt install -y \
11+ yarn \
12+ libpq-dev
13+ RUN pip3 install awscli
14+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash
15+ ENV NVM_DIR=/root/.nvm
16+ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
17+ RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
18+ RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
19+ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
20+ RUN node --version
21+ RUN npm --version
1922# Create app directory
2023RUN mkdir -p /usr/src/app
2124WORKDIR /usr/src/app
You can’t perform that action at this time.
0 commit comments