add common backend

This commit is contained in:
Nawaz Dhandala
2022-01-18 13:37:19 +00:00
parent 7029706e36
commit 4dd8183e63
4 changed files with 24 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
{
"name": "common-backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

11
common-ui/package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"name": "common-ui",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}

View File

@@ -16,8 +16,7 @@ ENV PRODUCTION=true
ENV CHROME_PATH=/usr/bin/chromium
# Install Chrome.
RUN apt-get update
RUN apt-get install -y chromium
RUN apk add curl chromium
RUN mkdir /usr/src
RUN mkdir /usr/src/app

View File

@@ -16,13 +16,7 @@ ENV CHROME_PATH=/usr/bin/google-chrome
WORKDIR /usr/src/app
# Install Chrome.
RUN \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
apt-get update && \
apt-get install -y google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
RUN apk add chromium
# Install app dependencies