Update Dockerfile
Browse files11234456678891011121314151615171817192021222322242526272829303132333435242526363738392840FROM python:3.11-alpineFROM python:3.11-alpine
LABEL name="Comet" \ description="Stremio's fastest torrent/debrid search add-on." \ url="https://github.com/g0ldyy/comet" url="https://github.com/g0ldyy/comet"
WORKDIR /appWORKDIR /app
ARG DATABASE_PATHARG DATABASE_PATH
# Environment variables for Python and Poetry ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ POETRY_NO_INTERACTION=1 \ POETRY_HOME="/usr/local" \ FORCE_COLOR=1 \ TERM=xterm-256color TERM=xterm-256color
# Fix python-alpine gcc# Install necessary build dependencies RUN apk add --no-cache \ gcc \ musl-dev \ libffi-dev \ make make \ python3-dev # Added to help with building some dependencies
# Install Poetry RUN pip install poetry
# Copy only the Poetry files first for dependency installation COPY pyproject.toml poetry.lock ./
# Install dependencies using Poetry RUN poetry install --no-cache --without dev
RUN pip install poetryCOPY . .RUN poetry install --no-cache --no-root --without dev# Now copy the rest of the application code COPY . .
# Entrypoint to run the application ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]Dockerfile+23-11