Skip to content

Commit 4a10499

Browse files
committed
Change Dockerfile reference path
1 parent 9fe7deb commit 4a10499

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.8-slim-buster
22

33
WORKDIR pypfopt
4-
COPY ../pyproject.toml ../poetry.lock ./
4+
COPY pyproject.toml poetry.lock ./
55

66
RUN 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

0 commit comments

Comments
 (0)