Update Dockerfile
Browse files1234567891011121314151617181920212223242526272829303132333435363738FROM python:3.11-alpineLABEL name="Comet" \description="Stremio's fastest torrent/debrid search add-on." \url="https://github.com/g0ldyy/comet"WORKDIR /appARG DATABASE_PATHENV PYTHONUNBUFFERED=1 \PYTHONDONTWRITEBYTECODE=1 \POETRY_NO_INTERACTION=1 \POETRY_HOME="/usr/local" \FORCE_COLOR=1 \TERM=xterm-256color# Install necessary packages for buildingRUN apk add --no-cache \gcc \musl-dev \libffi-dev \make# Install PoetryRUN pip install poetry# Copy only the necessary files first for dependency installationCOPY poetry.lock pyproject.toml ./# Install dependencies using PoetryRUN poetry install --no-cache --without dev# Now, copy the rest of your application codeCOPY . .# Entrypoint to run the applicationENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]12345678910111213141516171819202122232425262728FROM python:3.11-alpineLABEL name="Comet" \description="Stremio's fastest torrent/debrid search add-on." \url="https://github.com/g0ldyy/comet"WORKDIR /appARG DATABASE_PATHENV PYTHONUNBUFFERED=1 \PYTHONDONTWRITEBYTECODE=1 \POETRY_NO_INTERACTION=1 \POETRY_HOME="/usr/local" \FORCE_COLOR=1 \TERM=xterm-256color# Fix python-alpine gccRUN apk add --no-cache \gcc \musl-dev \libffi-dev \makeRUN pip install poetryCOPY . .RUN poetry install --no-cache --no-root --without devENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]
Dockerfile+11-21