This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ganesh B
committed
Apr 3, 2022
1 parent
57278b3
commit f67df51
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,6 @@ data/user/* | |
|
||
|
||
Dockerfile | ||
Dockerfile.dev | ||
# Dockerfile.dev | ||
docker-compose.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters