Update Dockerfile
Browse files12345678910111213141516171819202122232425262728FROM 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"]12345678910111213141516171819202122232425262728293031323334353637383940FROM python:3.11-alpineLABEL name="Comet" \description="Stremio's fastest torrent/debrid search add-on." \url="https://github.com/g0ldyy/comet"WORKDIR /appARG DATABASE_PATH# Environment variables for Python and PoetryENV PYTHONUNBUFFERED=1 \PYTHONDONTWRITEBYTECODE=1 \POETRY_NO_INTERACTION=1 \POETRY_HOME="/usr/local" \FORCE_COLOR=1 \TERM=xterm-256color# Install necessary build dependenciesRUN apk add --no-cache \gcc \musl-dev \libffi-dev \make \python3-dev # Added to help with building some dependencies# Install PoetryRUN pip install poetry# Copy only the Poetry files first for dependency installationCOPY pyproject.toml poetry.lock ./# Install dependencies using PoetryRUN poetry install --no-cache --without dev# Now copy the rest of the application codeCOPY . .# Entrypoint to run the applicationENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]
Dockerfile+23-11