2023-11-15 00:55:12 +01:00
|
|
|
FROM python:3.8.18-slim-bookworm
|
2023-11-14 23:40:27 +01:00
|
|
|
|
2023-11-15 00:55:12 +01:00
|
|
|
RUN apt-get update -qq && apt-get install -qq -y python3 python3-pip sqlite3 git unzip libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
2023-11-14 23:40:27 +01:00
|
|
|
|
|
|
|
ARG PUID=1000
|
|
|
|
ENV GROUP dockergroup
|
|
|
|
ENV USER docker
|
|
|
|
ENV HOMEDIR "/home/${USER}"
|
|
|
|
ENV PATH ${HOMEDIR}/.local/bin:$PATH
|
|
|
|
RUN useradd -u "${PUID}" -m "${USER}"
|
|
|
|
|
|
|
|
WORKDIR ${HOMEDIR}
|
|
|
|
|
|
|
|
RUN git clone https://github.com/DarkflameUniverse/NexusDashboard.git
|
|
|
|
|
|
|
|
COPY ./start.sh .
|
|
|
|
|
|
|
|
RUN chown -R 1000:1000 .
|
|
|
|
RUN chmod +x start.sh
|
|
|
|
|
|
|
|
USER ${USER}
|
|
|
|
|
2023-11-15 13:15:55 +01:00
|
|
|
WORKDIR ${HOMEDIR}/NexusDashboard
|
2023-11-15 00:55:12 +01:00
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN pip install gunicorn
|
2023-11-15 13:15:55 +01:00
|
|
|
WORKDIR ${HOMEDIR}
|
2023-11-15 00:55:12 +01:00
|
|
|
|
2023-11-14 23:40:27 +01:00
|
|
|
ENTRYPOINT [ "/home/docker/start.sh" ]
|