Skip to content
Open
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
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM python:3.11.2-slim

RUN pip install poetry
RUN mkdir diff_poetry_lock
COPY diff_poetry_lock/* ./diff_poetry_lock/
COPY poetry.lock ./diff_poetry_lock/
COPY pyproject.toml ./diff_poetry_lock/
RUN python3 -m venv /diff_poetry_lock/.venv
RUN poetry install --directory /diff_poetry_lock
ENV PYTHONPATH="/"
RUN pip install poetry && mkdir /src
COPY poetry.lock pyproject.toml README.md /src/
COPY diff_poetry_lock /src/diff_poetry_lock
RUN python3 -m venv /src/.venv && poetry install --directory /src --without=dev

ENTRYPOINT ["poetry", "--directory", "/diff_poetry_lock", "run", "python3", "/diff_poetry_lock/run_poetry.py"]
ENTRYPOINT ["poetry", "--directory", "/src", "run", "python3", "-m", "diff_poetry_lock.run_poetry"]