Files
OpenBB/Dockerfile
2021-02-28 13:22:12 -05:00

34 lines
678 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 && \
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", "gamestonk_terminal.py"]