mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
just use one container, reinstall necessary packages on dev start
This commit is contained in:
parent
073e8941f3
commit
472c8b25bb
4 changed files with 1 additions and 94 deletions
|
|
@ -1,52 +0,0 @@
|
|||
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"]
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
services:
|
||||
dispatcharr:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/DockerfileAIO
|
||||
container_name: dispatcharr-dev
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 9191:9191
|
||||
#- 5432:5432
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- POSTGRES_HOST=localhost
|
||||
- POSTGRES_USER=dispatch
|
||||
- POSTGRES_PASSWORD=secret
|
||||
- POSTGRES_PORT=5432
|
||||
- POSTGRES_DB=dispatcharr
|
||||
- DJANGO_SUPERUSER_USERNAME=admin
|
||||
- DJANGO_SUPERUSER_PASSWORD=admin
|
||||
- DJANGO_SUPERUSER_EMAIL=admin@dispatcharr.local
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
case "$DISPATCHARR_ENV" in
|
||||
"dev")
|
||||
echo "DISPATCHARR_ENV is set to 'dev'. Running Development Program..."
|
||||
apk add nodejs npm
|
||||
cd /app/frontend && npm install
|
||||
exec /usr/sbin/uwsgi --ini uwsgi.dev.ini
|
||||
;;
|
||||
|
|
|
|||
19
uwsg.aio.ini
19
uwsg.aio.ini
|
|
@ -1,19 +0,0 @@
|
|||
[uwsgi]
|
||||
preexec = python manage.py collectstatic --noinput
|
||||
preexec = python manage.py migrate --noinput
|
||||
|
||||
http-socket = [::]:9191
|
||||
buffer-size = 32768
|
||||
enable-threads
|
||||
plugin = python3
|
||||
module = dispatcharr.wsgi:application
|
||||
static-map = /static=staticfiles
|
||||
thunder-lock
|
||||
disable-write-exception
|
||||
|
||||
virtualenv = /dispatcharrpy
|
||||
|
||||
max-fd = 10000
|
||||
|
||||
attach-daemon = celery -A dispatcharr worker -l info
|
||||
attach-daemon = redis-server
|
||||
Loading…
Add table
Add a link
Reference in a new issue