mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
54 lines
1.1 KiB
Docker
54 lines
1.1 KiB
Docker
FROM alpine
|
|
|
|
ENV PATH="/dispatcharrpy/bin:$PATH" \
|
|
VIRTUAL_ENV=/dispatcharrpy \
|
|
DJANGO_SETTINGS_MODULE=dispatcharr.settings \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apk add \
|
|
python3 \
|
|
python3-dev \
|
|
gcc \
|
|
musl-dev \
|
|
linux-headers \
|
|
py3-pip \
|
|
ffmpeg \
|
|
streamlink \
|
|
vlc \
|
|
libpq-dev \
|
|
gcc \
|
|
py3-virtualenv \
|
|
uwsgi \
|
|
uwsgi-python \
|
|
nodejs \
|
|
npm \
|
|
git \
|
|
redis
|
|
|
|
RUN \
|
|
mkdir /data && \
|
|
virtualenv /dispatcharrpy && \
|
|
git clone https://github.com/Dispatcharr/Dispatcharr /app && \
|
|
cd /app && \
|
|
/dispatcharrpy/bin/pip install --no-cache-dir -r requirements.txt && \
|
|
cd /app/frontend && \
|
|
npm install && \
|
|
npm run build && \
|
|
find . -maxdepth 1 ! -name '.' ! -name 'build' -exec rm -rf '{}' \; && \
|
|
cd /app && \
|
|
python manage.py collectstatic --noinput || true
|
|
|
|
# Cleanup
|
|
RUN \
|
|
apk del \
|
|
nodejs \
|
|
npm \
|
|
git \
|
|
gcc \
|
|
musl-dev \
|
|
python3-dev \
|
|
linux-headers
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["/app/docker/entrypoint.aio.sh"]
|