2023-10-26 17:26:05 +00:00
|
|
|
ARG BASE_IMAGE=node:18-buster-slim
|
2023-09-28 12:51:18 +00:00
|
|
|
FROM ${BASE_IMAGE}
|
2023-10-26 17:26:05 +00:00
|
|
|
|
2023-09-24 07:13:19 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive \
|
2023-09-28 12:51:18 +00:00
|
|
|
EXCLUDE_DB=false
|
2020-08-25 08:30:51 +00:00
|
|
|
|
2020-08-25 23:32:42 +00:00
|
|
|
ENV DB_USER=majesticflame \
|
2020-08-30 23:10:17 +00:00
|
|
|
DB_PASSWORD='' \
|
|
|
|
DB_HOST='localhost' \
|
2020-08-25 08:30:51 +00:00
|
|
|
DB_DATABASE=ccio \
|
2020-08-30 23:10:17 +00:00
|
|
|
DB_PORT=3306 \
|
2023-03-09 19:11:55 +00:00
|
|
|
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' \
|
2023-09-28 12:51:18 +00:00
|
|
|
DB_DISABLE_INCLUDED=$EXCLUDE_DB
|
2020-08-25 08:30:51 +00:00
|
|
|
|
|
|
|
WORKDIR /home/Shinobi
|
2023-09-24 07:13:19 +00:00
|
|
|
COPY . ./
|
2020-08-25 08:30:51 +00:00
|
|
|
|
2023-09-28 12:51:18 +00:00
|
|
|
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 \
|
2024-03-30 02:05:46 +00:00
|
|
|
tar
|
2023-09-28 12:51:18 +00:00
|
|
|
|
|
|
|
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
|
2020-08-25 08:30:51 +00:00
|
|
|
|
|
|
|
VOLUME ["/home/Shinobi/videos"]
|
2021-11-05 19:34:50 +00:00
|
|
|
VOLUME ["/home/Shinobi/libs/customAutoLoad"]
|
2020-08-25 08:30:51 +00:00
|
|
|
VOLUME ["/config"]
|
|
|
|
|
2021-06-23 23:37:57 +00:00
|
|
|
EXPOSE 8080 443 21 25
|
2020-08-25 08:30:51 +00:00
|
|
|
|
2023-09-28 12:51:18 +00:00
|
|
|
ENTRYPOINT ["/home/Shinobi/Docker/init.sh"]
|
2020-08-25 08:30:51 +00:00
|
|
|
|
2023-10-26 17:26:05 +00:00
|
|
|
CMD [ "pm2-docker", "/home/Shinobi/Docker/pm2.yml" ]
|