mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
add common backend
This commit is contained in:
11
common-backend/package.json
Normal file
11
common-backend/package.json
Normal 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
11
common-ui/package.json
Normal 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"
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user