This commit is contained in:
Matthew Tran
2025-05-04 04:34:20 -07:00
parent f2df23ad98
commit 007243c99e
15 changed files with 80 additions and 62 deletions
+6 -7
View File
@@ -8,12 +8,11 @@ RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y nginx certbot python3-pip
RUN pip3 install sendgrid --break-system-packages
RUN groupadd -g 2000 me && useradd -u 2000 -g 2000 -m me
USER me
WORKDIR /home/me
RUN mkdir nginx certbot
WORKDIR /root
# TODO make the website code not terrible ;-;
COPY --chown=me:me html ./html
COPY --chown=me:me sendgrid.ke[y] ip_update.py ./
COPY --chown=me:me server.conf entry.sh ./
COPY html /var/www/html
COPY sendgrid.key ip.py ./
COPY server.conf entry.sh ./
CMD ["/bin/bash", "/root/entry.sh"]