Skip to content

Commit

Permalink
Remove package building, it's only used for dynamic versioning which …
Browse files Browse the repository at this point in the history
…isn't working
  • Loading branch information
omar-selo committed Jan 8, 2025
1 parent e5a848b commit 8e0f506
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions backend/Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ COPY backend/poetry.lock .

COPY backend/pyproject.toml .

RUN --mount=source=.git,target=.git,type=bind pip3 install poetry && \
RUN pip3 install poetry && \
poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --without dev && \
pip3 install --user poetry-dynamic-versioning[plugin]
poetry install --no-interaction --no-ansi --without dev

COPY ./backend .

RUN --mount=source=.git,target=.git,type=bind poetry build && pip3 install dist/*.whl

CMD [ "uvicorn", "test_observer.main:app", "--host", "0.0.0.0", "--port", "30000" ]

0 comments on commit 8e0f506

Please sign in to comment.