Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Dockerfile #618

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .dockerignore

This file was deleted.

27 changes: 18 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
FROM python:3.11-slim-buster
FROM python:3.12

WORKDIR pypfopt
COPY requirements.txt .
WORKDIR /pypfopt
COPY --link requirements.txt .

RUN pip install --upgrade pip \
pip install yfinance && \
pip install poetry \
pip install ipython \
pip install jupyter \
pip install pytest \
# prepare the system to install scs
RUN apt-get update && apt-get install -y \
cmake \
libopenblas-dev \
liblapack-dev \
&& rm -rf /var/lib/apt/lists/*


RUN pip install --upgrade pip && \
pip install yfinance \
poetry \
ipython \
jupyter \
ecos \
pytest && \
pip install -r requirements.txt

COPY . .
Expand Down
19 changes: 19 additions & 0 deletions docker/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#https://stackoverflow.com/questions/28097064/dockerignore-ignore-everything-except-a-file-and-the-dockerfile

# Ignore Everything
**

# do not ignore
!docs
!cookbook
!pypfopt
!tests

!requirements.txt
!poetry.lock
!pyproject.toml
!README.md

# even in those folders ignore
*/__pycache__
*/*.pyc
Loading