-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
40 lines (29 loc) · 1.15 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
# -----
FROM node:15.5.1-alpine AS build
RUN apk update
RUN apk add --no-cache bash nano coreutils
# 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 faucet && adduser -S faucet -G faucet
RUN mkdir -p /run/postgresql
RUN chown kdx:kdx /run/postgresql
# Tell docker that all future commands should run as the appuser user
WORKDIR /home/faucet/releases/faucet
COPY . .
RUN rm -rf node_modules
RUN rm package-lock.json
#RUN chown -R kdx:kdx .
RUN npm install
RUN npm install -g emanator@latest
RUN emanate kaspad
USER faucet
EXPOSE 16110 16210 16510 16610 16111 16211 16511 16611
ENTRYPOINT ["node","kaspa-faucet-website.js","--run-kdx","--testnet","--devnet"]