File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616.phpunit.result.cache
1717.styleci.yml
1818phpunit.xml
19- docs
2019ssl
2120db
2221redis
Original file line number Diff line number Diff line change 1+ FROM node:25-alpine AS docs
2+
3+ WORKDIR /docs
4+ COPY ./docs/ ./
5+ RUN npm install && npm run build
6+
17FROM php:8.4-fpm-alpine
28
39LABEL maintainer="Samuel Weirich"
@@ -89,7 +95,7 @@ RUN mkdir -p /var/log/php
8995COPY ./docker/app/ldap/ /etc/openldap
9096
9197# Copy application files
92- COPY --chown=www-data:www-data ./ /var/www/html
98+ COPY --exclude=docs -- chown=www-data:www-data ./ /var/www/html
9399
94100# Add folder to git safe.directory
95101RUN su-exec www-data git config --global --add safe.directory /var/www/html
@@ -108,8 +114,8 @@ RUN if [ "$VITE_COVERAGE" != "true" ] ; then \
108114RUN su-exec www-data composer install --no-dev
109115RUN su-exec www-data composer dump-autoload -o
110116
111- # Copy docs (Only for this branch, REMOVE before merge!)
112- RUN su-exec www-data cd docs && npm install && npm run build && cp -r build/* /var/www/html/public/PILOS/
117+ # Copy docs (Only for this branch, REMOVE before merge!) from the first stage
118+ COPY --chown= www-data:www-data --from= docs /docs/ build/ /var/www/html/public/PILOS/
113119
114120EXPOSE 80
115121EXPOSE 443
You can’t perform that action at this time.
0 commit comments