forked from aspectron/kdx
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
43 lines (31 loc) · 1.29 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
33
34
35
36
37
38
39
40
41
42
43
# -----
FROM node:14.4-alpine AS build
RUN apk update
RUN apk add --no-cache python gcc make g++ build-base git lzo bzip2 openssl bash file postgresql mosquitto nano go coreutils
#ENV PYTHONUNBUFFERED=1
#RUN apk add --no-cache python3 && \
# if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi
#RUN mv /usr/src/dagviz/k-explorer /usr/src/k-explorer
#RUN cd /usr/src/k-explorer && npm install && npm link
#RUN npm link k-explorer
#RUN mv /usr/src/dagviz/k-explorer /usr/src/dagviz/k-explorer
#RUN cd /usr/src/dagviz/k-explorer && npm install && npm link
#RUN npm link k-explorer
RUN addgroup -S karlsen-desktop && adduser -S karlsen-desktop -G karlsen-desktop
RUN mkdir -p /run/postgresql
RUN chown karlsen-desktop:karlsen-desktop /run/postgresql
# Tell docker that all future commands should run as the appuser user
WORKDIR /home/karlsen-desktop/releases/karlsen-desktop
COPY . .
RUN rm -rf node_modules
RUN rm package-lock.json
#RUN chown -R karlsen-desktop:karlsen-desktop .
RUN npm install
RUN npm install @karlsen/process-list
RUN npm install -g emanator@latest
RUN emanate --local-binaries --no-ssh
USER karlsen-desktop
EXPOSE 16210 16211 16310 16311 11224 18792
# 18787
# (pgsql - may conflict with other instances)
ENTRYPOINT ["node","karlsen-desktop.js","--init","--nice","--mine"]