Update Dockerfile
Browse files- Dockerfile +28 -0
Dockerfile
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
LABEL name="Comet" \
|
| 3 |
+
description="Stremio's fastest torrent/debrid search add-on." \
|
| 4 |
+
url="https://github.com/g0ldyy/comet"
|
| 5 |
+
|
| 6 |
+
# This is to prevent Python from buffering stdout and stderr
|
| 7 |
+
ENV PYTHONUNBUFFERED=1
|
| 8 |
+
|
| 9 |
+
# Install Poetry
|
| 10 |
+
RUN pip install poetry
|
| 11 |
+
|
| 12 |
+
ENV POETRY_NO_INTERACTION=1 \
|
| 13 |
+
POETRY_VIRTUALENVS_IN_PROJECT=1 \
|
| 14 |
+
POETRY_VIRTUALENVS_CREATE=1 \
|
| 15 |
+
POETRY_CACHE_DIR=/tmp/poetry_cache
|
| 16 |
+
|
| 17 |
+
# Set working directory
|
| 18 |
+
WORKDIR /app
|
| 19 |
+
|
| 20 |
+
# Copy the application code
|
| 21 |
+
COPY . ./
|
| 22 |
+
|
| 23 |
+
RUN poetry install --no-root
|
| 24 |
+
|
| 25 |
+
ENV VIRTUAL_ENV=/app/.venv
|
| 26 |
+
ENV PATH="/app/.venv/bin:$PATH"
|
| 27 |
+
|
| 28 |
+
CMD ["python", "run.py"]
|