| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:5601f441718b0d192d73394b35fd07675342837ec9089ddd52dd1dc0de79630e in / |
| CMD ["/bin/bash"] |
| COPY /buildout/ / # buildkit |
| ARG BUILD_DATE |
| ARG VERSION |
| ARG DEBIAN_FRONTEND=noninteractive |
| ENV LIBVA_DRIVERS_PATH=/usr/local/lib/x86_64-linux-gnu/dri LD_LIBRARY_PATH=/usr/local/lib NVIDIA_DRIVER_CAPABILITIES=compute,video,utility NVIDIA_VISIBLE_DEVICES=all |
| RUN |3 BUILD_DATE= VERSION= DEBIAN_FRONTEND=noninteractive /bin/sh -c echo "**** install runtime ****" && apt-get update && apt-get install -y python3-venv python3-dev libasound2t64 libedit2 libelf1 libexpat1 libglib2.0-0 libgomp1 libllvm18 libpciaccess0 libv4l-0 libwayland-client0 libx11-6 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb1 libxext6 libxfixes3 libxshmfence1 libxml2 ocl-icd-libopencl1 && echo "**** clean up ****" && rm -rf /var/lib/apt/lists/* /var/tmp/* # buildkit |
| CMD ["python3"] |
| LABEL maintainer=JKirkcaldy |
| LABEL support=https://github.com/jkirkcaldy/Glympse |
| SHELL [/bin/bash -c] |
| VOLUME [/media] |
| VOLUME [/rushes] |
| RUN /bin/bash -c apt update # buildkit |
| RUN /bin/bash -c DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends python3-dev build-essential pkg-config nginx git wget default-libmysqlclient-dev supervisor nano exiftool libmysqlclient-dev libmagic-dev # buildkit |
| RUN /bin/bash -c apt install --fix-missing -y iputils-ping # buildkit |
| WORKDIR / |
| RUN /bin/bash -c wget https://mediaarea.net/repo/deb/repo-mediaarea_1.0-24_all.deb # buildkit |
| RUN /bin/bash -c dpkg -i repo-mediaarea_1.0-24_all.deb # buildkit |
| RUN /bin/bash -c apt install -y mediainfo && rm -rf /var/lib/apt/lists/* && apt autoremove && apt clean # buildkit |
| RUN /bin/bash -c rm repo-mediaarea_1.0-24_all.deb # buildkit |
| RUN /bin/bash -c userdel ubuntu # buildkit |
| RUN /bin/bash -c useradd -ms /bin/bash glympse # buildkit |
| RUN /bin/bash -c mkdir -p /media/{Glympse,img,states,ingest} # buildkit |
| RUN /bin/bash -c mkdir -p /config # buildkit |
| RUN /bin/bash -c chown glympse:www-data -R /media # buildkit |
| RUN /bin/bash -c chown glympse:www-data -R /config # buildkit |
| COPY ./deploy/supervisord/supervisord.conf /etc/supervisor/supervisord.conf # buildkit |
| RUN /bin/bash -c chmod 0777 -R /etc/supervisor # buildkit |
| RUN /bin/bash -c chmod 0777 -R /etc/nginx # buildkit |
| RUN /bin/bash -c chmod 0777 -R /media/ingest # buildkit |
| RUN /bin/bash -c mkdir -p /var/run/celery # buildkit |
| RUN /bin/bash -c mkdir /run/daphne # buildkit |
| RUN /bin/bash -c chmod -R 0777 /run/daphne # buildkit |
| RUN /bin/bash -c chown glympse:www-data /run/daphne # buildkit |
| RUN /bin/bash -c chown glympse:www-data /var/run/celery # buildkit |
| RUN /bin/bash -c chmod 0777 /var/run/celery # buildkit |
| RUN /bin/bash -c touch /run/nginx.pid # buildkit |
| RUN /bin/bash -c touch /var/run/celery/celerybeat.pid # buildkit |
| RUN /bin/bash -c touch /var/tmp/supervisord.sock # buildkit |
| RUN /bin/bash -c touch /var/tmp/supervisor.sock # buildkit |
| RUN /bin/bash -c touch /var/run/supervisord.pid # buildkit |
| RUN /bin/bash -c chown -R glympse:www-data /run/nginx.pid /var/tmp/supervisord.sock /var/tmp/supervisor.sock /var/run/celery/celerybeat.pid /var/run/supervisord.pid /run/daphne* && chown -R glympse:www-data /var/lib/nginx /var/log/nginx && chmod -R 0777 /var/lib/nginx /var/log/nginx /run/nginx.pid && chmod -R 0777 /var/tmp/supervisord.sock /var/tmp/supervisor.sock # buildkit |
| USER glympse |
| WORKDIR /Glympse |
| RUN /bin/bash -c mkdir -p logs/nginx # buildkit |
| RUN /bin/bash -c mkdir -p logs/supervisor # buildkit |
| RUN /bin/bash -c chmod 777 -R logs # buildkit |
| ENV VIRTUAL_ENV=/Glympse |
| ENV PATH=/Glympse/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV PIP_NO_CACHE_DIR=1 |
| ENV PYTHONUNBUFFERED=1 |
| ENV PYTHONDONTWRITEBYTECODE=1 |
| ENV CELERY_APP=Glympse |
| ENV ENABLE_UWSGI=yes |
| ENV ENABLE_NGINX=yes |
| ENV ENABLE_CELERY_BEAT=yes |
| ENV ENABLE_TRANSCODER=yes |
| ENV ENABLE_PROCESSING=yes |
| ENV ENABLE_TRANSCRIBER=yes |
| ENV ENABLE_MIGRATIONS=yes |
| ENV ENABLE_TRANSCODER_360=no |
| ENV ENABLE_INGEST=no |
| RUN /bin/bash -c python3 -m venv $VIRTUAL_ENV # buildkit |
| COPY ./requirements ./requirements # buildkit |
| RUN /bin/bash -c pip3 install --no-cache-dir -r ./requirements/base.txt # buildkit |
| COPY --chown=glympse:www-data --chmod=774 . . # buildkit |
| RUN /bin/bash -c chmod 777 -R /Glympse/templates # buildkit |
| RUN /bin/bash -c chmod +x entrypoint.sh # buildkit |
| RUN /bin/bash -c chmod +x start.sh # buildkit |
| RUN /bin/bash -c chmod +x prestart.sh # buildkit |
| ENV LIBVA_DRIVERS_PATH=/usr/local/lib/x86_64-linux-gnu/dri LD_LIBRARY_PATH=/usr/local/lib NVIDIA_DRIVER_CAPABILITIES=compute,video,utility NVIDIA_VISIBLE_DEVICES=all |
| EXPOSE map[80/tcp:{}] |
| ENTRYPOINT ["/Glympse/entrypoint.sh"] |
| CMD ["/Glympse/start.sh"] |