mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 20:17:54 +00:00
22 lines
606 B
Docker
22 lines
606 B
Docker
FROM ubuntu:22.04
|
|
|
|
# install dependencies
|
|
ENV TZ=America/Los_Angeles
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN apt-get update && apt-get upgrade
|
|
RUN apt-get install -y nginx certbot python3-certbot-nginx python3-pip
|
|
RUN pip3 install sendgrid
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
|
|
# enable site
|
|
COPY matthewtran.com /etc/nginx/sites-available
|
|
RUN ln -s /etc/nginx/sites-available/matthewtran.com /etc/nginx/sites-enabled/matthewtran.com
|
|
COPY html /var/www/matthewtran.com/html
|
|
|
|
# start script
|
|
WORKDIR /root
|
|
COPY sendgrid.ke[y] ip_update.py ./
|
|
COPY entry.sh ./
|