Skip to content

Commit

Permalink
Updated DockerFile and node version in devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
midhunmanoj2024 committed Jul 22, 2024
1 parent 49b7a28 commit ac4b2e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then \
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r \
# /tmp/pip-tmp/requirements.txt && rm -rf /tmp/pip-tmp

RUN sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
# psql is useful and needed in the container post-create commands.
postgresql-contrib \
# A JRE is needed to run SonarLint.
default-jre \
# X is needed to run the Cypress GUI.
libasound2 libgconf-2-4 libgtk-3-dev libnotify-dev libnss3 libxss1 xvfb
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

# Add the Yarn package repository to APT sources
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

# Update APT package lists and install required packages
RUN sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
postgresql-contrib \
default-jre \
libasound2 libgconf-2-4 libgtk-3-dev libnotify-dev libnss3 libxss1 xvfb

2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
VARIANT: '0.201.2-3.8'

# Node.js version to install
NODE_VERSION: '14.17.5'
NODE_VERSION: '20.11.1'

context: '..'

Expand Down

0 comments on commit ac4b2e2

Please sign in to comment.