-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
44 lines (33 loc) · 1.61 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
44
FROM nikolaik/python-nodejs:python3.8-nodejs15-slim
RUN apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
RUN apt-get update -y
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
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
# For running javascript
RUN sudo apt install -y curl
RUN sudo apt-get update --allow-releaseinfo-change
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
RUN sudo apt install nodejs -y --allow-change-held-packages
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 ./paymentvault/js/package*.json /code/paymentvault/js/
RUN npm install --prefix /code/paymentvault/js
COPY ./stablehedge/js/package*.json /code/stablehedge/js/
RUN npm install --prefix /code/stablehedge/js
COPY . /code
WORKDIR /code
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENTRYPOINT [ "sh", "entrypoint.sh" ]