docker stuff
This commit is contained in:
parent
d4e57b275a
commit
d43ceb364d
|
@ -0,0 +1,2 @@
|
|||
*.md
|
||||
.git/
|
|
@ -0,0 +1,35 @@
|
|||
FROM debian:buster
|
||||
RUN apt update \
|
||||
&& apt install -y \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
libgtk2.0-0 \
|
||||
libgconf-2-4 \
|
||||
libxshmfence1 \
|
||||
libnss3 \
|
||||
libatk-bridge2.0-0 \
|
||||
libdrm2 \
|
||||
libgtk-3-0 \
|
||||
libgbm1 \
|
||||
libasound2 \
|
||||
xvfb \
|
||||
&& npm i npm@latest -g \
|
||||
&& npm install -g electron --unsafe-perm=true \
|
||||
&& mkdir /home/hellgate \
|
||||
&& useradd hellgate -d /home/hellgate \
|
||||
&& chown -R hellgate:hellgate /home/hellgate
|
||||
|
||||
COPY --chown=hellgate . /home/hellgate
|
||||
|
||||
USER hellgate
|
||||
WORKDIR /home/hellgate
|
||||
RUN npm install \
|
||||
&& ./gen_cert.sh \
|
||||
&& rm -rf node_modules/gemini-server \
|
||||
&& cd node_modules \
|
||||
&& git clone https://github.com/jgkaplan/gemini-server
|
||||
|
||||
CMD xvfb-run -a electron hellgate.js --no-sandbox
|
||||
|
||||
EXPOSE 1965
|
Loading…
Reference in New Issue