Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (37 loc) · 1.59 KB
/
Copy pathDockerfile
File metadata and controls
49 lines (37 loc) · 1.59 KB
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
47
48
49
FROM nikolaik/python-nodejs:python3.8-nodejs16-slim
RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
RUN rm -f /etc/apt/sources.list.d/yarn.list
RUN apt-get update -y || true
RUN apt-get -y install build-essential sudo postgresql libpq-dev postgresql-client curl \
postgresql-client-common libncurses5-dev libjpeg-dev zlib1g-dev git wget redis-server && \
wget -O /usr/local/bin/wait-for-it.sh https://raw.githubusercontent.com/vishnubob/wait-for-it/8ed92e8cab83cfed76ff012ed4a36cef74b28096/wait-for-it.sh && \
chmod +x /usr/local/bin/wait-for-it.sh
# Next command needed for grpcio==1.34.0 build
RUN apt-get install -y \
build-essential \
python3-dev \
libssl-dev \
libffi-dev \
libc-dev \
pkg-config
RUN pip install --upgrade pip
COPY ./requirements.txt requirements.txt
# RUN pip install --no-cache-dir -r requirements.txt
RUN pip install -r requirements.txt
COPY ./main/js/package*.json /code/main/js/
RUN npm install --prefix /code/main/js --legacy-peer-deps
COPY ./anyhedge/js/package*.json /code/anyhedge/js/
RUN npm install --prefix /code/anyhedge/js --legacy-peer-deps
COPY ./rampp2p/js/package*.json /code/rampp2p/js/
RUN npm install --prefix /code/rampp2p/js --legacy-peer-deps
COPY ./cts/js/package*.json /code/cts/js/
RUN npm install --prefix /code/cts/js
COPY ./stablehedge/js/package*.json /code/stablehedge/js/
RUN npm install --prefix /code/stablehedge/js
COPY ./multisig/js/package*.json /code/multisig/js/
RUN npm install --prefix /code/multisig/js
COPY . /code
WORKDIR /code
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENTRYPOINT [ "sh", "entrypoint.sh" ]