-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp2.txt
21 lines (21 loc) · 1.04 KB
/
temp2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y --no-install-recommends ca-certificates make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv
RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
RUN echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
RUN echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
RUN ~/.pyenv/bin/pyenv install -v 3.8.0
RUN ~/.pyenv/bin/pyenv global 3.8.0
RUN ~/.pyenv/bin/pyenv versions
RUN apt-get install -y --assume-yes python3-pip
RUN pip3 install --upgrade pip
RUN pip3 --version
RUN python3 --version
RUN which python3
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
ADD cortex /cortex
CMD ["echo", "RAGHD_DEBUG"]
CMD python3 -m cortex.api run-server '127.0.0.1' 5000 'mongodb://127.0.0.1:27017'