Update Dockerfile
Browse files12345678910111 unmodified line131415161718192021222324252627282930313233343536373839FROM 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 Poetry1 unmodified linePYTHONDONTWRITEBYTECODE=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 application1234567891011121314151 unmodified line17181920212223242526272829303132333435363738394041424344# Use Alpine-based Python image for a smaller image sizeFROM python:3.11-alpine# Metadata as described in your projectLABEL name="Comet" \description="Stremio's fastest torrent/debrid search add-on." \url="https://github.com/g0ldyy/comet"# Set the working directory inside the containerWORKDIR /app# Optional: Argument for database path if needed in your appARG DATABASE_PATH# Environment variables for Python and Poetry1 unmodified linePYTHONDONTWRITEBYTECODE=1 \POETRY_NO_INTERACTION=1 \POETRY_HOME="/usr/local" \PATH="$PATH:$POETRY_HOME/bin" \FORCE_COLOR=1 \TERM=xterm-256color# Install necessary build dependenciesRUN apk add --no-cache \gcc \musl-dev \libffi-dev \make \python3-dev # Required for building some Python packages# Install PoetryRUN pip install --no-cache-dir poetry# Copy only the Poetry files and install dependencies firstCOPY pyproject.toml poetry.lock ./# Install dependencies without development packagesRUN poetry install --no-root --no-dev# Copy the rest of your application code to the imageCOPY . .# Entrypoint to run the application
Dockerfile+12-7