initial commit

This commit is contained in:
Aaron Riedel 2023-11-14 23:40:27 +01:00
commit a468eb5475
Signed by: aaron
GPG key ID: 643004654D40D577
4 changed files with 42 additions and 0 deletions

0
.drone.yml Normal file
View file

27
Dockerfile Normal file
View file

@ -0,0 +1,27 @@
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" ]

5
README.md Normal file
View file

@ -0,0 +1,5 @@
[![Build Status](https://drone.ar21.de/api/badges/aaron/nexus/status.svg)](https://drone.ar21.de/aaron/nexus)
Docker deployment for [DarkflameUniverse/NexusDashboard](https://github.com/DarkflameUniverse/NexusDashboard)
Is available at: https://nexus.ar21.de

10
start.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "---------------"
echo "Nexus Dashboard"
echo "by Aaron Riedel"
echo "---------------"
# check if necessary variables are set
[[ -z "${APP_SECRET_KEY}" ]] && echo "APP_SECRET_KEY not set" && exit 1
[[ -z "${APP_DATABASE_URI}" ]] && echo "APP_DATABASE_URI not set" && exit 1