mxyng / discollama

Run an AI-powered Discord bot from the comfort of your laptop.
MIT License
129 stars 22 forks source link

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

Open ktfcaptain opened 7 months ago

ktfcaptain commented 7 months ago

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.

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"]