Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turn-key Dockerfile #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
@@ -0,0 +1 @@
node_modules/
28 changes: 28 additions & 0 deletions Dockerfile
@@ -0,0 +1,28 @@
# note: if you are using --userns-remap this will not work for you,
# alternatively you can run a separate docker daemon without if you
# need to retain that functionality and want to to use this.
# For more info:
# https://docs.docker.com/engine/reference/commandline/dockerd/#run-multiple-daemons
#
# Quickstart instructions:
# - docker build -t follow -t follow:latest .
# - xhost +local:nobody
# - docker run -it -d --rm --network host follow:latest

FROM node:latest
ENV DEBIAN_FRONTEND noninteractive
ENV DISPLAY :0
RUN apt-get update && apt-get -y install libxshmfence-dev \
libnss3-dev \
libatk-bridge2.0-dev \
libdrm-dev \
libgtk-3-dev \
libasound-dev
ENV HOME /home/iohzrd/persistent
COPY . /home/iohzrd/follow
RUN chown -R nobody:users /home/iohzrd
USER nobody:users
WORKDIR /home/iohzrd/follow
RUN npm install
VOLUME [ "/home/iohzrd/persistent" ]
CMD /usr/local/bin/npx quasar dev -m electron -- --no-sandbox