Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes dependency paths while executing commands. #10

Merged
merged 1 commit into from
Dec 15, 2024
Merged
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
9 changes: 1 addition & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ LABEL author="Gustavo Freze" \
org.label-schema.name="gustavofreze/auto-assign" \
org.label-schema.schema-version="1.0"

ARG VENV_PATH=/app/.venv

ENV PIP_PATH=${VENV_PATH}/bin/pip
ENV POETRY_NO_INTERACTION=1
ENV POETRY_VIRTUALENVS_IN_PROJECT=true

WORKDIR /app

COPY pyproject.toml ./
Expand All @@ -19,7 +13,6 @@ RUN pip install --upgrade pip poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --sync --no-root

COPY .venv ./
COPY src ./src

CMD [".venv/bin/python", "-m", "src.main"]
CMD ["/app/.venv/bin/python", "-m", "src.main"]
Loading