Improve Hugo Configuration #9
@@ -11,17 +11,20 @@ RUN apt-get update && apt-get install -y git hugo nginx cron curl bash sudo htop
|
|||||||
RUN groupadd -r hugo && useradd -r -g hugo hugo
|
RUN groupadd -r hugo && useradd -r -g hugo hugo
|
||||||
|
|
||||||
# Hugo Directory Tree
|
# Hugo Directory Tree
|
||||||
RUN mkdir -pv /var/www/hugo && chown -Rv hugo:hugo /var/www/hugo
|
RUN mkdir -pv /var/www/hugo/
|
||||||
|
|
||||||
# NGINX Directory Tree
|
# NGINX Directory Tree
|
||||||
RUN mkdir -pv /var/www/html/ && chown -Rv hugo:hugo /var/www/html/
|
RUN mkdir -pv /var/www/html/
|
||||||
|
|
||||||
# Copy Cron Job to Update Git Repo
|
# Copy Cron Job to Update Git Repo
|
||||||
COPY files/hugo.crontab /etc/cron.d/hugo
|
COPY files/hugo.crontab /etc/cron.d/hugo
|
||||||
COPY files/hugo.cronjob.sh /var/www/hugo/cronjob.sh
|
COPY files/hugo.cronjob.sh /var/www/hugo/cronjob.sh
|
||||||
RUN chmod +x /var/www/hugo/cronjob.sh
|
|
||||||
RUN crontab /etc/cron.d/hugo
|
RUN crontab /etc/cron.d/hugo
|
||||||
|
|
||||||
|
# Hugo User Permissions
|
||||||
|
RUN chown -Rv hugo:hugo /var/www/
|
||||||
|
RUN chmod +x /var/www/hugo/cronjob.sh
|
||||||
|
|
||||||
# Copy Start Script
|
# Copy Start Script
|
||||||
COPY files/main.sh /root/main.sh
|
COPY files/main.sh /root/main.sh
|
||||||
RUN chmod +x /root/main.sh
|
RUN chmod +x /root/main.sh
|
||||||
|
Reference in New Issue
Block a user