Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
--- /dev/null
+CHANGELOG.md
+CONTRIBUTING.md
+Dockerfile
+README.md
+composer.json
+.*
\ No newline at end of file
# Ignore file starting with dot, but keep others
.*
!.gitlab-ci.yml
# Ignore file starting with dot, but keep others
.*
!.gitlab-ci.yml
-!.gitignore
\ No newline at end of file
+!.gitignore
+!.dockerignore
\ No newline at end of file
echo "UTC" > /etc/timezone
# install lighttpd
echo "UTC" > /etc/timezone
# install lighttpd
-RUN apk add lighttpd git
# install jirafeau
RUN mkdir /www
WORKDIR /www
# 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
COPY docker/cleanup.sh /cleanup.sh
COPY docker/run.sh /run.sh
COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
# cleanup
COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
# cleanup
RUN rm -rf /var/cache/apk/*
CMD /run.sh
RUN rm -rf /var/cache/apk/*
CMD /run.sh