Skip to content

Commit

Permalink
feat: update docker architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jul 2, 2024
1 parent f27cf5c commit 2accef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ ENV TZ="Asia/Kolkata"
# Install inotifytools for reloading config on change
RUN apt-get update -y && apt-get install -y inotify-tools

WORKDIR /app

# Copy config file
COPY nginx.conf /etc/nginx/
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/

# Set up the watcher.
COPY watch_reload.sh /
COPY watch_reload.sh ./

ENTRYPOINT [ "/watch_reload.sh" ]
ENTRYPOINT [ "./watch_reload.sh" ]
2 changes: 1 addition & 1 deletion nginx/watch_reload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ watch_reloads() {
fi
}

watch_reloads >/nginx_auto_reload_service.log 2>&1 &
watch_reloads >/app/nginx_auto_reload_service.log 2>&1 &

nginx -g 'daemon off;'

0 comments on commit 2accef7

Please sign in to comment.