mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
migrate to coreos
This commit is contained in:
+6
-7
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user