Dockerfile 925 B

1234567891011121314151617181920212223242526272829
  1. #FROM node:16.6
  2. FROM node:17
  3. #FROM node:17-alpine
  4. #RUN apk add nss
  5. #RUN apk add git
  6. RUN apt update
  7. RUN apt-get install --yes libnss3
  8. RUN apt-get install --yes libatk1.0
  9. RUN apt-get install --yes libatk-bridge2.0
  10. RUN apt-get install --yes libcups2
  11. RUN apt-get install --yes libdrm2
  12. RUN apt-get install --yes libgtk3.0
  13. RUN apt-get install --yes libgbm1
  14. RUN apt-get install --yes libasound2
  15. RUN apt-get install --yes libexif12
  16. #RUN sed -i "s/puppeteer.launch();/puppeteer.launch({args: [\"--no-sandbox\"]});/g" node_modules/svgexport/render.js
  17. #RUN npm uninstall electron
  18. #RUN npm install electron
  19. RUN git clone https://github.com/takumade/NullboardX.git
  20. #RUN ls
  21. RUN sed -i '7s/.*/"start": "electron . --no-sandbox -a"/' /NullboardX/package.json
  22. RUN cd NullboardX ; npm install
  23. #RUN npm install
  24. COPY . .
  25. WORKDIR /NullboardX
  26. EXPOSE 3000
  27. ENV QTWEBENGINE_DISABLE_SANDBOX 1
  28. ENV DISPLAY=:0.0
  29. CMD ["npm","run","start","--no-sandbox"]