mikmc commited on
Commit
5183da8
·
verified ·
1 Parent(s): f0afe42

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -28
Dockerfile CHANGED
@@ -1,28 +1,37 @@
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"]
 
 
 
 
 
 
 
 
 
 
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
+ POETRY_CACHE_DIR="/app/.cache/pypoetry" \
16
+ FORCE_COLOR=1 \
17
+ TERM=xterm-256color
18
+
19
+ # Fix python-alpine gcc
20
+ RUN apk add --no-cache \
21
+ gcc \
22
+ musl-dev \
23
+ libffi-dev \
24
+ make
25
+
26
+ # Install Poetry
27
+ RUN pip install poetry
28
+
29
+ # Copy files into the container
30
+ COPY . .
31
+
32
+ # Install project dependencies without dev dependencies and without creating a virtual environment
33
+ RUN poetry config virtualenvs.create false && \
34
+ poetry install --no-cache --no-root --without dev
35
+
36
+ # Define the default entry point
37
+ ENTRYPOINT ["poetry", "run", "python", "-m", "comet.main"]