Update Node.js to v18 (#7643)
Update Node.js to v18 (#7643)

Co-authored-by: Renovate Bot <c71e7261d37a4f6ae4cfb0cbd79081310a237e67@renovateapp.com>
FROM node:14

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y xorg xvfb libxss-dev libgtk-3-0 gconf2 libnss3 libasound2 libsecret-1-0

ENV CXX="g++-4.9"
ENV CC="gcc-4.9"
ENV DISPLAY=:99.0

WORKDIR /app

ENTRYPOINT ["sh", "-c", "(Xvfb $DISPLAY -screen 0 1024x768x16 &) && npm run test"]

FROM node:18

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y xorg xvfb libxss-dev libgtk-3-0 gconf2 libnss3 libasound2 libsecret-1-0

ENV CXX="g++-4.9"
ENV CC="gcc-4.9"
ENV DISPLAY=:99.0

WORKDIR /app

ENTRYPOINT ["sh", "-c", "(Xvfb $DISPLAY -screen 0 1024x768x16 &) && npm run test"]
