File tree Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ deploy_steps: &deploy_steps
4444jobs :
4545 UnitTests :
4646 docker :
47- - image : circleci /node:12.16.1
47+ - image : cimg /node:12.22.12
4848 - image : circleci/postgres:9.6.2-alpine
4949 environment :
5050 - POSTGRES_USER : circle_test
6161 command : |
6262 sudo apt update
6363 sudo apt install curl
64- sudo apt install python -pip
64+ sudo apt install python3 -pip
6565 - run : *install_awscli
6666 - run : *install_deploysuite
6767 - setup_remote_docker
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+ python3-pip
9+ RUN apt install -y \
10+ yarn \
11+ libpq-dev
12+ RUN pip3 install awscli
13+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/${NVM_VERSION}/install.sh | bash
14+ ENV NVM_DIR=/root/.nvm
15+ RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
16+ RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
17+ RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
18+ ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
19+ RUN node --version
20+ RUN npm --version
1921# Create app directory
2022RUN mkdir -p /usr/src/app
2123WORKDIR /usr/src/app
You can’t perform that action at this time.
0 commit comments