File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:16.14
2
+
3
+ RUN apt-get update && apt-get install \
4
+ git libx11-xcb1 libxss1 libxcb-dri3-0 libgconf2-dev libxtst6 \
5
+ xvfb dbus-x11 libnss3 libudev-dev libatk-bridge2.0-0 libgtk-3-0 \
6
+ libxss1 libasound2 libdrm2 libgtkextra-dev libgbm1 \
7
+ -yq --no-install-suggests --no-install-recommends \
8
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /OverVue
11
+ COPY . .
12
+ RUN chown -R node /OverVue
13
+ RUN npm i -g @quasar/cli
14
+
15
+ USER node
16
+ RUN npm install
17
+
18
+ USER root
19
+ RUN chown root /OverVue/node_modules/electron/dist/chrome-sandbox
20
+ RUN chmod 4755 /OverVue/node_modules/electron/dist/chrome-sandbox
21
+ EXPOSE 3000
22
+
23
+ USER node
24
+ CMD bash
25
+
26
+ # IN YOUR WSL 2 TERMINAL:
27
+ # export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
28
+ # export LIBGL_ALWAYS_INDIRECT=1
29
+ #
30
+ # MUST BE RUNNING SOME XSERVER SUCH AS VcXsrv OR OTHER
31
+ #
32
+ # RUN WITH:
33
+ # docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v`pwd:/app --rm -it <yourimagename> bash
34
+ #
35
+ # INSIDE CONTAINER:
36
+ # quasar dev -m electron -- --no-sandbox
37
+ #
You can’t perform that action at this time.
0 commit comments