mikmc commited on
Commit
3fd5548
·
verified ·
1 Parent(s): a716ac9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -21
Dockerfile CHANGED
@@ -1,38 +1,28 @@
1
- FROM python:3.11-alpine
2
-
3
  LABEL name="Comet" \
4
  description="Stremio's fastest torrent/debrid search add-on." \
5
- url="https://github.com/g0ldyy/comet"
6
 
7
- WORKDIR /app
8
 
9
- ARG DATABASE_PATH
10
 
11
  ENV PYTHONUNBUFFERED=1 \
12
  PYTHONDONTWRITEBYTECODE=1 \
13
  POETRY_NO_INTERACTION=1 \
14
  POETRY_HOME="/usr/local" \
15
  FORCE_COLOR=1 \
16
- TERM=xterm-256color
17
 
18
- # Install necessary packages for building
19
  RUN apk add --no-cache \
20
  gcc \
21
  musl-dev \
22
  libffi-dev \
23
- make
24
-
25
- # Install Poetry
26
- RUN pip install poetry
27
-
28
- # Copy only the necessary files first for dependency installation
29
- COPY poetry.lock pyproject.toml ./
30
-
31
- # Install dependencies using Poetry
32
- RUN poetry install --no-cache --without dev
33
 
34
- # Now, copy the rest of your application code
35
- COPY . .
 
36
 
37
- # Entrypoint to run the application
38
- ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]
 
1
+ FROM python:3.11-alpine
 
2
  LABEL name="Comet" \
3
  description="Stremio's fastest torrent/debrid search add-on." \
4
+ url="https://github.com/g0ldyy/comet"
5
 
6
+ WORKDIR /app
7
 
8
+ ARG DATABASE_PATH
9
 
10
  ENV PYTHONUNBUFFERED=1 \
11
  PYTHONDONTWRITEBYTECODE=1 \
12
  POETRY_NO_INTERACTION=1 \
13
  POETRY_HOME="/usr/local" \
14
  FORCE_COLOR=1 \
15
+ TERM=xterm-256color
16
 
17
+ # Fix python-alpine gcc
18
  RUN apk add --no-cache \
19
  gcc \
20
  musl-dev \
21
  libffi-dev \
22
+ make
 
 
 
 
 
 
 
 
 
23
 
24
+ RUN pip install poetry
25
+ COPY . .
26
+ RUN poetry install --no-cache --no-root --without dev
27
 
28
+ ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]