Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Fixed Dockerfile in 'final operations section'
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Mar 4, 2020
1 parent 2ad0849 commit bde5a28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
README-secret.md

# Ignore Dockerfiles
# Dockerfile
Dockerfile
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ RUN find /var/www -type d -exec chmod 755 {} \;


#### FINAL OPERATIONS
COPY docker-files/init.sh /init.sh
RUN rm -rf /init.sh && touch /init.sh
RUN echo "#!/bin/bash" >> /init.sh
RUN echo "service nginx start" >> /init.sh
RUN echo "/bin/bash" >> /init.sh
RUN chown root:root /init.sh
RUN chmod +x /init.sh
EXPOSE 80 443
CMD /init.sh
CMD /init.sh

0 comments on commit bde5a28

Please sign in to comment.