-
Notifications
You must be signed in to change notification settings - Fork 214
/
Dockerfile
46 lines (31 loc) · 915 Bytes
/
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
44
45
46
FROM node:12-slim
RUN set -x && \
apt-get update && \
apt-get install -y \
build-essential \
make \
python
#Install Typescript
RUN npm install [email protected] -g
WORKDIR /app
COPY . .
RUN chown -R node:node /app
# yarn and tsc shouldn't be run as root
USER node
# shouldn't be needed
ENV NODE_ENV=production
RUN yarn install
WORKDIR /app/node_modules/@ekliptor/apputils
#Needs a exit 0 because of build errors
RUN tsc --watch false; exit 0
WORKDIR /app/node_modules/@ekliptor/bit-models
#Needs a exit 0 because of build errors
RUN tsc --watch false; exit 0
WORKDIR /app/node_modules/@ekliptor/browserutils
RUN tsc --watch false
WORKDIR /app
RUN tsc --watch false; exit 0
WORKDIR /app/build
# let WolfBot know it's running in a VM
ENV WOLF_CONTAINER=docker
CMD [ "node", "app.js", "--debug", "--config=Noop" ,"--trader=RealTimeTrader" ,"--noUpdate" ,"--noBrowser" ]