mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
39 lines
735 B
Docker
39 lines
735 B
Docker
FROM python:3.6.13-slim-buster
|
|
|
|
RUN apt-get update && apt-get -y install --no-install-recommends \
|
|
gcc \
|
|
g++ \
|
|
make \
|
|
wget \
|
|
curl \
|
|
telnet \
|
|
net-tools \
|
|
iputils-ping \
|
|
dnsutils \
|
|
git \
|
|
gnupg \
|
|
unzip \
|
|
bzip2 \
|
|
libsm6 \
|
|
libxt6 \
|
|
libgl1-mesa-glx \
|
|
libpng16-16 \
|
|
python3-tk && \
|
|
apt-get -y autoremove && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN useradd --create-home --shell /bin/bash python
|
|
USER python
|
|
WORKDIR /home/python
|
|
|
|
ENV PATH="/home/python/.local/bin:${PATH}"
|
|
|
|
COPY --chown=python:python . .
|
|
|
|
#RUN INSTALL_ON_LINUX=1 pip install -r requirements.txt
|
|
RUN pip install "poetry==1.1.4"
|
|
RUN poetry export --without-hashes -f requirements.txt | pip install -r /dev/stdin
|
|
|
|
CMD ["python", "terminal.py"]
|