-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (45 loc) · 1.37 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
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y wget \
gnupg2
RUN apt update
RUN apt install -y --no-install-recommends wget curl gnupg2 software-properties-common apt-transport-https ca-certificates lsb-release
RUN wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add -
RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-5.0.list
RUN apt update
RUN apt -y --no-install-recommends install mongodb-org
RUN apt-get update && apt-get install -y --no-install-recommends \
python3.8 \
python3-pip \
python3.8-dev \
libpython3.8 \
libpython3.8-dev \
jq \
mongodb-org \
locales \
locales-all \
python3-setuptools \
g++ \
git \
python3-dev \
npm \
curl \
groff \
less \
unzip \
zip \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.8 get-pip.py
# Install last version of NodeJS
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
WORKDIR /src
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
COPY requirements.txt /src/requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt --proxy=${HTTP_PROXY}
COPY . /src