Skip to content

Commit 1e968ab

Browse files
authored
Merge pull request #744 from topcoder-platform/dokcer-image-fix
Image OS upgrade
2 parents 11f6e7d + ad5c72c commit 1e968ab

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

Dockerfile

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
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
2023
RUN mkdir -p /usr/src/app
2124
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)