Jared há 3 anos atrás
pai
commit
9a68a710e5
2 ficheiros alterados com 30 adições e 0 exclusões
  1. 1 0
      docker/alpine-test/Dockerfile
  2. 29 0
      docker/test/Dockerfile

+ 1 - 0
docker/alpine-test/Dockerfile

@@ -2,6 +2,7 @@ FROM joyzoursky/python-chromedriver:3.9-alpine-selenium
 RUN apk add bash
 RUN apk add --virtual build-deps gcc python3-dev musl-dev
 RUN apk add --no-cache mariadb-dev
+RUN apk add tmux
 RUN pip3 install --upgrade pip
 RUN pip3 install dataset
 RUN pip3 install mysqlclient

+ 29 - 0
docker/test/Dockerfile

@@ -0,0 +1,29 @@
+#FROM node:16.6
+FROM node:17
+#FROM node:17-alpine
+#RUN apk add nss
+#RUN apk add git
+RUN apt update
+RUN apt-get install --yes libnss3
+RUN apt-get install --yes libatk1.0
+RUN apt-get install --yes libatk-bridge2.0
+RUN apt-get install --yes libcups2
+RUN apt-get install --yes libdrm2
+RUN apt-get install --yes libgtk3.0
+RUN apt-get install --yes libgbm1
+RUN apt-get install --yes libasound2
+RUN apt-get install --yes libexif12
+#RUN sed -i "s/puppeteer.launch();/puppeteer.launch({args: [\"--no-sandbox\"]});/g" node_modules/svgexport/render.js
+#RUN npm uninstall electron
+#RUN npm install electron
+RUN git clone https://github.com/takumade/NullboardX.git
+#RUN ls
+RUN sed -i '7s/.*/"start": "electron . --no-sandbox -a"/' /NullboardX/package.json
+RUN cd NullboardX ; npm install
+#RUN npm install
+COPY . .
+WORKDIR /NullboardX
+EXPOSE 3000
+ENV QTWEBENGINE_DISABLE_SANDBOX 1
+ENV DISPLAY=:0.0
+CMD ["npm","run","start","--no-sandbox"]