-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:bionic
# Set metadata
LABEL maintainer="The Mimix Company <[email protected]>"
LABEL version="0.0.8"
LABEL description="Dockerfile for Nebula"
# Install base packages
RUN apt-get update -y
RUN apt-get install -y software-properties-common build-essential curl sudo git unzip
RUN apt-get install -y libx11-xcb1 libgtk-3-0 libnss3 libxss1 libasound2 libssl1.1
RUN apt-get install -y libxcb-dri3-0 libdrm2 libgbm1
# Install Node.js and friends
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
RUN apt-get install -y nodejs
RUN npm config set user 0
RUN npm config set unsafe-perm true
RUN npm install -g electron
RUN npm install -g electron-packager
# Stage the app
RUN mkdir -p /var/lib/staging
ADD . /var/lib/staging
RUN (cd /var/lib/staging; npm install; electron-packager . --platform=linux --out=out --icon=assets/icons/icon.png --prune=true)
# Install the app
RUN mkdir -p /app
RUN mv /var/lib/staging/out/"Mimix Nebula"-linux-x64 /app/nebula
# Run the app
CMD [ "/app/nebula/Mimix Nebula", "--no-sandbox" ]