Skip to content

Commit

Permalink
nginx entrypoint: /docker-start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Jun 19, 2020
1 parent 5550aa6 commit d13d452
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ services:
build: ./nginx
volumes:
- share:/share
entrypoint: /docker-start.sh
restart: unless-stopped
environment:
VIRTUAL_HOST: www.$HOST
Expand Down
7 changes: 1 addition & 6 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
FROM nginx:stable

# install infographic site from Github
RUN apt-get update; apt-get --assume-yes install git
RUN mkdir /share/github && cd /share/github && \
git clone https://github.com/marinebon/iea-ne_info.git \
mv /usr/share/nginx/html /usr/share/nginx/html_0 \
ln -s iea-ne_info /usr/share/nginx/html
COPY docker-start.sh /docker-start.sh
6 changes: 6 additions & 0 deletions nginx/docker-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# install infographic site from Github
RUN apt-get update; apt-get --assume-yes install git
RUN mkdir /share/github && cd /share/github && \
git clone https://github.com/marinebon/iea-ne_info.git \
mv /usr/share/nginx/html /usr/share/nginx/html_0 \
ln -s iea-ne_info /usr/share/nginx/html

0 comments on commit d13d452

Please sign in to comment.