Shinobi/Dockerfile

75 lines
1.6 KiB
Docker
Raw Permalink Normal View History

2023-10-26 17:26:05 +00:00
ARG BASE_IMAGE=node:18-buster-slim
FROM ${BASE_IMAGE}
2023-10-26 17:26:05 +00:00
2023-09-24 07:13:19 +00:00
ARG DEBIAN_FRONTEND=noninteractive \
EXCLUDE_DB=false
2020-08-25 23:32:42 +00:00
ENV DB_USER=majesticflame \
DB_PASSWORD='' \
DB_HOST='localhost' \
DB_DATABASE=ccio \
DB_PORT=3306 \
DB_TYPE='mysql' \
2020-08-25 23:32:42 +00:00
SUBSCRIPTION_ID=sub_XXXXXXXXXXXX \
2020-08-28 22:29:55 +00:00
PLUGIN_KEYS='{}' \
2020-08-31 07:37:21 +00:00
SSL_ENABLED='false' \
SSL_COUNTRY='CA' \
SSL_STATE='BC' \
SSL_LOCATION='Vancouver' \
SSL_ORGANIZATION='Shinobi Systems' \
SSL_ORGANIZATION_UNIT='IT Department' \
SSL_COMMON_NAME='nvr.ninja' \
DB_DISABLE_INCLUDED=$EXCLUDE_DB
WORKDIR /home/Shinobi
2023-09-24 07:13:19 +00:00
COPY . ./
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y \
wget \
curl \
net-tools \
software-properties-common \
build-essential \
git \
python3 \
sudo \
pkg-config \
apt-utils \
yasm \
bzip2 \
coreutils \
procps \
gnutls-bin \
nasm \
tar \
make \
g++ \
gcc \
tar
RUN sh /home/Shinobi/Docker/install_ffmpeg.sh
RUN sh /home/Shinobi/Docker/install_mariadb.sh
RUN sh /home/Shinobi/Docker/install_nodejs.sh
RUN chmod 777 /home/Shinobi
RUN chmod -R 777 /home/Shinobi/plugins
RUN chmod -f +x /home/Shinobi/Docker/init.sh
RUN sed -i -e 's/\r//g' /home/Shinobi/Docker/init.sh
RUN apt-get update -y --fix-missing
RUN apt-get upgrade -y
VOLUME ["/home/Shinobi/videos"]
2021-11-05 19:34:50 +00:00
VOLUME ["/home/Shinobi/libs/customAutoLoad"]
VOLUME ["/config"]
2021-06-23 23:37:57 +00:00
EXPOSE 8080 443 21 25
ENTRYPOINT ["/home/Shinobi/Docker/init.sh"]
2023-10-26 17:26:05 +00:00
CMD [ "pm2-docker", "/home/Shinobi/Docker/pm2.yml" ]