36 lines
839 B
Docker
36 lines
839 B
Docker
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
|