54 lines
1.0 KiB
Docker
54 lines
1.0 KiB
Docker
FROM ubuntu:jammy
|
|
|
|
RUN apt-get update \
|
|
&& DEBIAN_FRONTEND=NONINTERACTIVE apt-get upgrade -y
|
|
|
|
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
|
|
wget \
|
|
pip \
|
|
libgl1 \
|
|
libglib2.0-0 \
|
|
nginx \
|
|
rsync \
|
|
less \
|
|
git \
|
|
sqlite3
|
|
|
|
# Upgrade Node
|
|
RUN wget -qO- https://deb.nodesource.com/setup_18.x | bash -
|
|
|
|
RUN DEBIAN_FRONTEND=NONINTERACTIVE apt-get install -y \
|
|
python2 \
|
|
jhead \
|
|
nodejs \
|
|
jq
|
|
|
|
# Install the latest npm and npx
|
|
RUN npm install --global npm@latest
|
|
|
|
# Install deepface and retina-face
|
|
RUN pip install deepface
|
|
RUN pip install retina-face
|
|
RUN pip install piexif
|
|
|
|
# numpy 1.24 deprecated float; deepface is still using it, so we need to
|
|
# install <1.24
|
|
RUN pip install "numpy<1.24"
|
|
|
|
COPY /entrypoint.sh /
|
|
|
|
COPY /package*json /website/
|
|
|
|
WORKDIR /website
|
|
RUN npm upgrade && npm install
|
|
|
|
COPY /*js /website/
|
|
COPY /src /website/src
|
|
COPY /scanner /website/scanner
|
|
COPY /server /website/server
|
|
COPY /frontend /website/frontend
|
|
COPY /db /website/db
|
|
COPY /config /website/config
|
|
|
|
CMD [ "/entrypoint.sh" ]
|