File tree 2 files changed +22
-20
lines changed
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
44
44
jobs :
45
45
UnitTests :
46
46
docker :
47
- - image : circleci /node:12.16.1
47
+ - image : cimg /node:12.22.12
48
48
- image : circleci/postgres:9.6.2-alpine
49
49
environment :
50
50
- POSTGRES_USER : circle_test
61
61
command : |
62
62
sudo apt update
63
63
sudo apt install curl
64
- sudo apt install python -pip
64
+ sudo apt install python3 -pip
65
65
- run : *install_awscli
66
66
- run : *install_deploysuite
67
67
- 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
19
21
# Create app directory
20
22
RUN mkdir -p /usr/src/app
21
23
WORKDIR /usr/src/app
You can’t perform that action at this time.
0 commit comments