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

When using COPY with more than one source file, the destination must be a directory and end with a / #16

Open
ktfcaptain opened this issue Mar 8, 2024 · 0 comments

Comments

@ktfcaptain
Copy link

I have this running on Proxmox now but was erroring out trying to COPY pyproject.toml & peotry.lock until the line was ended with a forward slash(as it's shown with said comment bellow).

I can barely copy/paste half the time, definitely no expert, but thought I'd share.

  • Dockerfile:


RUN apk add --no-cache build-base libffi-dev
RUN pip install poetry

WORKDIR /mnt
COPY pyproject.toml poetry.lock ./  # Ensure the destination ends with a forward slash
RUN poetry install --no-root --only main

COPY . .
ENTRYPOINT ["poetry", "run", "python", "discollama.py"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant