X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/b8d29136e66d51b7ed00d8f34deace7a58c82aaf..9a72b7f56fa8d77ef5de841d2248d7bb71d9733a:/Dockerfile?ds=inline diff --git a/Dockerfile b/Dockerfile index e0b81bf..776fec0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,17 @@ RUN apk update && \ echo "UTC" > /etc/timezone # install lighttpd -RUN apk add lighttpd git +RUN apk add lighttpd # install jirafeau RUN mkdir /www WORKDIR /www -COPY .git .git -RUN git reset --hard && rm -rf docker install.php .git .gitignore .gitlab-ci.yml CONTRIBUTING.md Dockerfile README.md -RUN touch /www/lib/config.local.php -RUN chown -R $(id -u lighttpd).$(id -g www-data) /www -RUN chmod o=,ug=rwX -R /www +# Will ignore some files through .dockerignore +COPY . . +RUN rm -rf docker && \ + touch /www/lib/config.local.php && \ + chown -R $(id -u lighttpd).$(id -g www-data) /www && \ + chmod o=,ug=rwX -R /www COPY docker/cleanup.sh /cleanup.sh COPY docker/run.sh /run.sh @@ -28,7 +29,6 @@ COPY docker/php.ini /usr/local/etc/php/php.ini COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf # cleanup -RUN apk del git RUN rm -rf /var/cache/apk/* CMD /run.sh