File size: 782 Bytes
dea9fbb
b295e9e
 
dea9fbb
b295e9e
dea9fbb
b295e9e
dea9fbb
b295e9e
 
 
dea9fbb
 
b295e9e
cf37eaf
fb04091
9bb8db3
dea9fbb
b295e9e
 
 
 
dea9fbb
 
 
 
 
 
b295e9e
dea9fbb
 
b295e9e
dea9fbb
 
 
b295e9e
dea9fbb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM python:3.11-alpine
LABEL name="Comet" \
      description="Stremio's fastest torrent/debrid search add-on." \
      url="https://github.com/g0ldyy/comet"

WORKDIR /app

ARG DATABASE_PATH

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1 \
    POETRY_NO_INTERACTION=1 \
    POETRY_HOME="/usr/local" \
    FORCE_COLOR=1 \
    TERM=xterm-256color \
    POETRY_VIRTUALENVS_CREATE=false

# Fix python-alpine gcc
RUN apk add --no-cache \
    gcc \
    musl-dev \
    libffi-dev \
    make

RUN pip install poetry

# Clear Poetry cache
RUN poetry cache clear --all pypoetry

# Verify config
RUN poetry config --list

COPY . .
RUN mkdir -p data && chmod -R 777 data
RUN poetry install --no-cache --no-root --without dev

ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]