-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #667 from WHOIGit/automated_tests
Update Dockerfile
- Loading branch information
Showing
1 changed file
with
3 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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] | ||
|