mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-27 04:40:51 +03:00
first v2 commit
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,19 +1,13 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM python:alpine
|
||||
FROM python:alpine3.11
|
||||
|
||||
RUN python -m venv /opt/venv
|
||||
|
||||
ENV PATH="/opt/venv/bin:$PATH" PIP_NO_CACHE_DIR=off iSPBTV_docker=True
|
||||
ENV PIP_NO_CACHE_DIR=off iSPBTV_docker=True TERM=xterm-256color COLORTERM=truecolor
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN apk add gcc musl-dev build-base linux-headers libffi-dev rust cargo openssl-dev git avahi && \
|
||||
pip install --upgrade pip setuptools-rust wheel && \
|
||||
pip install -r requirements.txt && \
|
||||
apk del gcc musl-dev build-base linux-headers libffi-dev rust cargo openssl-dev git && \
|
||||
rm -rf /root/.cache /root/.cargo
|
||||
|
||||
RUN pip install --upgrade pip wheel && \
|
||||
pip install -r requirements.txt
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
@@ -21,4 +15,4 @@ WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["/opt/venv/bin/python3", "-u", "main.py"]
|
||||
ENTRYPOINT ["python3", "-u", "main.py"]
|
||||
Reference in New Issue
Block a user