mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 10:45:27 +00:00
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
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
|
|
|
|
COPY ./ /app/
|
|
|
|
RUN \
|
|
mkdir /data && \
|
|
virtualenv /dispatcharrpy && \
|
|
cd /app && \
|
|
/dispatcharrpy/bin/pip install --no-cache-dir -r requirements.txt && \
|
|
cd /app/frontend && \
|
|
npm install && \
|
|
cd /app && \
|
|
python manage.py collectstatic --noinput || true
|
|
|
|
# Cleanup
|
|
RUN \
|
|
apk del \
|
|
git \
|
|
gcc \
|
|
musl-dev \
|
|
python3-dev \
|
|
linux-headers
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["/usr/sbin/uwsgi", "--ini", "uwsgi.ini"]
|
|
# CMD ["gunicorn", "--workers=4", "--worker-class=gevent", "--timeout=300", "--bind", "0.0.0.0:5656", "dispatcharr.wsgi:application"]
|