2023-09-11 02:16:04 +00:00

17 lines
425 B
Docker

FROM ubuntu:22.04
# install dependencies
RUN apt-get update && apt-get upgrade
RUN apt-get install -y nginx certbot python3-certbot-nginx
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 entry.sh ./