Skip to content

Commit ee9be76

Browse files
fix(OME-107): fix entrypoint command, don't rely on workdir set during image building. (#2)
* Install packages via poetry, not diff. * Fix entrypoint command. * Specify static venv location.
1 parent 3af1298 commit ee9be76

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.11.2-slim
22

33
RUN pip install poetry
4-
RUN pip install requests
5-
RUN pip install pydantic
6-
74
RUN mkdir diff_poetry_lock
85
COPY diff_poetry_lock/* ./diff_poetry_lock/
6+
COPY poetry.lock ./diff_poetry_lock/
7+
COPY pyproject.toml ./diff_poetry_lock/
8+
RUN python3 -m venv /diff_poetry_lock/.venv
9+
RUN poetry install --directory /diff_poetry_lock
910
ENV PYTHONPATH="/"
1011

11-
ENTRYPOINT ["/usr/local/bin/python3", "/diff_poetry_lock/run_poetry.py"]
12+
ENTRYPOINT ["poetry", "--directory", "/diff_poetry_lock", "run", "python3", "/diff_poetry_lock/run_poetry.py"]

0 commit comments

Comments
 (0)