Skip to content

Commit

Permalink
Merge pull request #667 from WHOIGit/automated_tests
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
ethanandrews authored Jul 16, 2024
2 parents 38bcd71 + f61ef99 commit 3697a26
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions compose/local/tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:24.04

# Required for nodejs 15+
WORKDIR /tests
Expand All @@ -16,24 +16,9 @@ COPY ./tests/*.js /tests/
COPY ./tests/*.csv /tests/
COPY ./tests/*.ext /tests/

# The default Ubuntu 22.04 repository contains an old version 12.22.9 of Node.js
# Need to remove it
RUN apt remove -y nodejs
RUN apt remove -y nodejs-doc
RUN apt-get -y autoremove
# Selenium Webdriver version 4.8.0 requires node 14 or higher
#RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
#RUN apt-get install -y nodejs
# Above node install is depreciated with a 60 second wait
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" \
| tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install nodejs -y
RUN apt-get install curl -y && apt-get install npm -y
RUN apt-get install curl -y
RUN apt-get install npm -y

# npm WARN EBADENGINE package: '[email protected]' with Node 12.x
RUN npm install [email protected]
Expand Down

0 comments on commit 3697a26

Please sign in to comment.