Browse Source

docker stuff

master
sose 3 months ago
parent
commit
d43ceb364d
  1. 2
      .dockerignore
  2. 35
      Dockerfile

2
.dockerignore

@ -0,0 +1,2 @@
*.md
.git/

35
Dockerfile

@ -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…
Cancel
Save