first v2 commit

This commit is contained in:
dmunozv04
2023-09-04 14:11:34 +02:00
parent 1aa06e677f
commit 359a7f7be1
18 changed files with 1899 additions and 392 deletions

View File

@@ -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"]