Skip to content
Snippets Groups Projects
Commit 96fc10eb authored by Erick Hitter's avatar Erick Hitter
Browse files

Basic Dockerization

parent 02246213
No related branches found
No related tags found
1 merge request!1WIP: Dockerize etc
node_modules
npm-debug.log
FROM node:12
WORKDIR /usr/src/app
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
gconf-service \
libasound2 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgcc1 \
libgconf-2-4 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
ca-certificates \
fonts-liberation \
libappindicator1 \
libnss3 \
lsb-release \
xdg-utils \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
RUN npm install
COPY . .
USER nobody
CMD [ "node", "index.js" ]
......@@ -32,7 +32,13 @@ async function sendSMS(item) {
async function run() {
console.log('');
console.log(`Starting at ${moment().toISOString()}`);
const browser = await puppeteer.launch();
const browser = await puppeteer.launch(
{
args: [
'--no-sandbox'
]
}
);
const page = await browser.newPage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment