Update Dockerfile
Browse files12345678910111 unmodified line131415161718192021222324252627282930313233FROM 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 \1 unmodified linePOETRY_HOME="/usr/local" \FORCE_COLOR=1 \TERM=xterm-256color \POETRY_CACHE_DIR="/root/.cache/pypoetry"# Fix python-alpine gccRUN apk add --no-cache \gcc \musl-dev \libffi-dev \make# Create a writable directory for poetry cacheRUN mkdir -p /root/.cache/pypoetry && \chown -R root:root /root/.cache/pypoetryRUN pip install poetryCOPY . .RUN poetry install --no-cache --no-root --without devENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]12345678910111213141 unmodified line161718192021222324252627282930313233FROM python:3.11-alpineLABEL name="Comet" \description="Stremio's fastest torrent/debrid search add-on." \url="https://github.com/g0ldyy/comet"RUN addgroup -S myuser && adduser -S myuser -G myuserWORKDIR /appARG DATABASE_PATHENV PYTHONUNBUFFERED=1 \PYTHONDONTWRITEBYTECODE=1 \1 unmodified linePOETRY_HOME="/usr/local" \FORCE_COLOR=1 \TERM=xterm-256color \POETRY_CACHE_DIR="/home/myuser/.cache/pypoetry"RUN apk add --no-cache gcc musl-dev libffi-dev makeRUN mkdir -p /home/myuser/.cache/pypoetry && chown -R myuser:myuser /home/myuser/.cache/pypoetryRUN pip install poetryCOPY . .USER myuserRUN poetry install --no-cache --no-root --without devENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]
Dockerfile+18-18