Skip to content

Commit

Permalink
add command to run pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-nguyen-dang committed Jul 8, 2024
1 parent 881bc90 commit 93d6fb2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dockers/spark/master/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ RUN python -m poetry config virtualenvs.create false \
&& python -m poetry show -v

# copy source code ONLY after installing dependencies
COPY tube /tube/
COPY . /tube/
COPY README.md setup.py /tube/

RUN python -m poetry config virtualenvs.create false \
&& python -m poetry install -vv --only main --no-interaction \
&& python -m poetry build \
&& python -m poetry show -v

RUN pip install .
RUN python -m pip install --upgrade pip
RUN python -m pip install dist/tube-1.0.5-py3-none-apy.whl

EXPOSE 8080 7077 6066

Expand Down
6 changes: 4 additions & 2 deletions dockers/spark/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ RUN python -m poetry config virtualenvs.create false \
&& python -m poetry show -v

# copy source code ONLY after installing dependencies
COPY tube /tube
COPY . /tube
COPY README.md setup.py /tube/

RUN python -m poetry config virtualenvs.create false \
&& python -m poetry install -vv --only main --no-interaction \
&& python -m poetry build \
&& python -m poetry show -v

RUN pip install .
RUN python -m pip install --upgrade pip
RUN python -m pip install dist/tube-1.0.5-py3-none-apy.whl

EXPOSE 8081

Expand Down
16 changes: 15 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repository = "https://github.com/uc-cdis/tube"
include = [
"NOTICE",
]
packages = [{include = "tube"}]

[tool.poetry.dependencies]
python = "^3.9"
Expand All @@ -28,6 +29,7 @@ setuptools = "65.3.0"
six = "1.16.0"
Werkzeug = "3.0.3"
toml="0.10.2"
wheel="0.43.0"

[tool.poetry.dev-dependencies]
pytest="5.4.3"
Expand Down

0 comments on commit 93d6fb2

Please sign in to comment.