27 lines
650 B
Text
27 lines
650 B
Text
|
FROM python:3.13-rc-slim-bullseye
|
||
|
|
||
|
RUN apt update -qq && apt install -qq -y python3 python3-pip sqlite3 git unzip libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
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
|
||
|
WORKDIR ${HOMEDIR}/NexusDashboard
|
||
|
|
||
|
RUN pip install -r requirements.txt
|
||
|
RUN pip install gunicorn
|
||
|
|
||
|
COPY ./start.sh .
|
||
|
|
||
|
RUN chown -R 1000:1000 .
|
||
|
RUN chmod +x start.sh
|
||
|
|
||
|
USER ${USER}
|
||
|
|
||
|
ENTRYPOINT [ "/home/docker/start.sh" ]
|