-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact: switched from using synthetixio/docker-e2e base image to manu…
…al installation of NodeJS and other dependencies in Dockerfile
- Loading branch information
1 parent
c60192c
commit 4e07943
Showing
3 changed files
with
30 additions
and
5 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,9 +1,17 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM --platform=linux/amd64 synthetixio/docker-e2e:18.16-ubuntu as base | ||
FROM node:18.6 | ||
|
||
# Install chrome and necessary dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y wget gnupg ca-certificates jq \ | ||
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' \ | ||
&& apt-get update \ | ||
&& apt-get install -y google-chrome-stable | ||
|
||
|
||
# Project setup | ||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN yarn install --frozen-lockfile |
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
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