diff --git a/.gitignore b/.gitignore index bce92a0..394c9a1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ README-secret.md # Ignore Dockerfiles -# Dockerfile \ No newline at end of file +Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e9827c9..69882a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file