1
0
Fork 0
mirror of https://github.com/imtbl/hydrus-server-docker synced 2024-05-09 07:03:38 +12:00
hydrus-server-docker/Dockerfile

68 lines
1.5 KiB
Docker
Raw Normal View History

2019-11-29 08:34:33 +13:00
FROM python:3.8-slim-buster
2018-11-30 04:49:02 +13:00
ARG USER_ID=1000
ARG GROUP_ID=1000
ENV \
USER_ID=$USER_ID \
GROUP_ID=$GROUP_ID
2018-11-30 04:49:02 +13:00
WORKDIR /usr/src/app
2019-02-10 12:29:35 +13:00
COPY ./hydrus .
COPY ./deb .
2019-02-10 12:29:35 +13:00
2019-01-20 02:51:48 +13:00
RUN \
2019-08-19 22:11:59 +12:00
apt-get update && apt-get install --no-install-recommends -y \
build-essential \
2019-01-20 02:51:48 +13:00
ffmpeg \
gosu \
multiarch-support \
wget && \
dpkg -i libjpeg8_8d-2_amd64.deb && \
rm libjpeg8_8d-2_amd64.deb && \
pip install --upgrade pip && \
2019-01-20 02:51:48 +13:00
pip install virtualenv && \
virtualenv venv && \
. venv/bin/activate && \
2019-01-20 02:51:48 +13:00
pip install \
2020-01-02 16:47:12 +13:00
beautifulsoup4~=4.8.2 \
chardet~=3.0.4 \
2020-01-02 16:47:12 +13:00
lz4~=3.0.2 \
numpy~=1.18.0 \
2019-11-29 08:34:33 +13:00
opencv-python-headless~=4.1.2.30 \
2019-11-14 22:55:27 +13:00
pillow~=6.2.1 \
2019-11-29 08:34:33 +13:00
psutil~=5.6.7 \
2019-01-20 02:51:48 +13:00
pylzma~=0.5.0 \
2019-11-29 08:34:33 +13:00
pyopenssl~=19.1.0 \
2019-12-21 03:51:44 +13:00
pyyaml~=5.2 \
requests~=2.22.0 \
2019-01-20 02:51:48 +13:00
send2trash~=1.5.0 \
service_identity~=18.1.0 \
2019-11-14 22:55:27 +13:00
twisted~=19.10.0 && \
2019-01-20 02:51:48 +13:00
rm -r ~/.cache && \
2019-08-19 22:11:59 +12:00
apt-get remove build-essential --purge -y && \
apt-get clean && apt-get autoremove --purge -y && \
rm -rf /var/lib/apt/lists/* && \
chown -R ${USER_ID}:${GROUP_ID} /usr/src/app && \
chmod +x \
server.py \
bin/swfrender_linux \
bin/upnpc_linux && \
mkdir /data && chown -R ${USER_ID}:${GROUP_ID} /data
2018-11-30 04:49:02 +13:00
COPY docker-cmd-start.sh /usr/local/bin/start
RUN chmod +x /usr/local/bin/start
2018-11-30 04:49:02 +13:00
2019-08-19 22:11:59 +12:00
EXPOSE 45870/tcp 45871/tcp 45872/tcp
2018-11-30 04:49:02 +13:00
2019-03-05 06:54:28 +13:00
HEALTHCHECK --interval=1m --timeout=10s --retries=3 \
CMD wget --quiet --tries=1 --no-check-certificate --spider \
https://localhost:45870 || exit 1
2019-03-25 00:53:53 +13:00
VOLUME /data
USER ${USER_ID}:${GROUP_ID}
CMD ["start"]