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