Skip to content
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.

Commit

Permalink
[TEMP] Minor changes to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesh B committed Apr 3, 2022
1 parent 57278b3 commit f67df51
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ data/user/*


Dockerfile
Dockerfile.dev
# Dockerfile.dev
docker-compose.yaml

43 changes: 43 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM node:14.16

RUN apt-get update && \
apt-get -y --no-install-recommends install git libgtk-3-0 libgtk-3-0-dev libgtkextra-dev libgconf2-dev libnss3 libasound2 \
libxtst-dev libxss1 libgtk-3-bin software-properties-common\
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/*


# User and permissions
ARG user=desktopcgi
ARG group=desktopcgi
ARG uid=999
ARG gid=999
ARG home=/home/${user}
RUN mkdir -p /etc/sudoers.d \
&& groupadd -g ${gid} ${group} \
&& useradd -d ${home} -u ${uid} -g ${gid} -m -s /bin/bash ${user} \
&& echo "${user} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sudoers_${user}


USER ${user}


RUN mkdir ${home}/app
RUN chown -R ${user} ${home}/app
WORKDIR ${home}/app


# COPY --chown=desktopcgi package*.json ./
COPY --chown=${user} package*.json ./


RUN npm install
# If you are building your code for production
# RUN npm ci --only=production


# COPY --chown=desktopcgi . .
COPY --chown=${user} . .


# CMD [ "npm", "run", "electronbuild" ]

Empty file added Dockerfile.dev
Empty file.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Desktop-CGI is a desktop executable app that can be created from any CGI files or CGI web apps that can be served from an file, an embedded web server using proxy, or an remote proxy web server. It supports all major Operating systems like Windows, Linux, and MacOS.


`[Funding Invited]`


![Desktop CGI](./desktop-cgi.jpeg)


Expand Down

0 comments on commit f67df51

Please sign in to comment.