mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
add http website
This commit is contained in:
+13
-5
@@ -1,10 +1,18 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
RUN apt-get update && apt-get upgrade
|
||||
# RUN apt-get install -y wget
|
||||
RUN apt-get install -y git nginx
|
||||
|
||||
RUN useradd -m matt
|
||||
USER matt
|
||||
WORKDIR /home/matt
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log
|
||||
RUN ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
# TODO everything else
|
||||
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
|
||||
|
||||
WORKDIR /root
|
||||
COPY entry.sh ./
|
||||
|
||||
# TODO gitea
|
||||
# TODO disable registration except admin
|
||||
|
||||
Reference in New Issue
Block a user