improved docker image rebuild speed

This commit is contained in:
tuffnerdstuff 2021-03-27 14:03:39 +01:00
parent b95f517ada
commit f550c1349e

View file

@ -1,7 +1,4 @@
FROM php:apache
COPY backend-php/ /var/www/html/
COPY frontend/ /var/www/html/
COPY docker/start.sh .
RUN apt-get update && \
apt-get install -y memcached libmemcached-dev zlib1g-dev libldap2-dev && \
@ -12,7 +9,11 @@ RUN apt-get update && \
EXPOSE 80/tcp
VOLUME /etc/hauk
STOPSIGNAL SIGINT
COPY docker/start.sh .
RUN chmod +x ./start.sh
COPY backend-php/ /var/www/html/
COPY frontend/ /var/www/html/
CMD ["./start.sh"]