File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11FROM python:3.8-slim-buster
22
33WORKDIR pypfopt
4- COPY ../ pyproject.toml ../ poetry.lock ./
4+ COPY pyproject.toml poetry.lock ./
55
66RUN buildDeps='gcc g++' && \
77 apt-get update && apt-get install -y $buildDeps --no-install-recommends && \
@@ -10,18 +10,20 @@ RUN buildDeps='gcc g++' && \
1010 poetry install -E optionals --no-root && \
1111 apt-get purge -y --auto-remove $buildDeps
1212
13- COPY ../. .
13+ COPY . .
1414
1515# Usage examples:
1616#
1717# Build
18- # docker build . -t pypfopt
18+ # from root of repo:
19+ # docker build -f docker/Dockerfile . -t pypfopt
1920#
2021# Run
2122# iPython interpreter:
2223# docker run -it pypfopt poetry run ipython
2324# Jupyter notebook server:
2425# docker run -it -p 8888:8888 pypfopt poetry run jupyter notebook --allow-root --no-browser --ip 0.0.0.0
26+ # click on http://127.0.0.1:8888/?token=xxx
2527# Pytest
2628# docker run -t pypfopt poetry run pytest
2729# Bash
You can’t perform that action at this time.
0 commit comments