From 24e2bd5821b09d4d7e243fc62ab36f45454a0a03 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 17 Apr 2024 15:56:41 -0700
Subject: Add beginning setup for tests
---
Dockerfile | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 Dockerfile
(limited to 'Dockerfile')
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..77e51ff
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM node
+
+RUN apt-get update -qq -y && \
+ apt-get install -y \
+ libasound2 \
+ libatk-bridge2.0-0 \
+ libgtk-4-1 \
+ libnss3 \
+ xdg-utils \
+ wget && \
+ wget -q -O chrome-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chrome-linux64.zip && \
+ unzip chrome-linux64.zip && \
+ rm chrome-linux64.zip && \
+ mv chrome-linux64 /opt/chrome/ && \
+ ln -s /opt/chrome/chrome /usr/local/bin/ && \
+ wget -q -O chromedriver-linux64.zip https://storage.googleapis.com/chrome-for-testing-public/123.0.6312.122/linux64/chromedriver-linux64.zip && \
+ unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver && \
+ rm chromedriver-linux64.zip && \
+ mv chromedriver /usr/local/bin/
+
+WORKDIR /usr/src/app
+COPY package*.json .
+
+ENV CHROMEDRIVER_SKIP_DOWNLOAD=true
+
+RUN npm install --omit=dev
+RUN npm install chromedriver
+
+COPY . .
+
+CMD [ "npm", "start" ]
--
cgit v1.2.3