This commit is contained in:
2025-09-30 21:24:37 +02:00
parent d603fb452a
commit b7b9cebacb
258 changed files with 416 additions and 601 deletions

25
misc/docker/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
ARG NODE_VERSION=20.12.2
FROM node:${NODE_VERSION}-alpine AS node
FROM reg.cadoles.com/envole/nineapache:7.4
COPY ./misc/docker/apache.conf /etc/apache2/conf.d/zapp.conf
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin
RUN npm install -g yarn --force
RUN composer self-update --1
RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/crontabs/root
WORKDIR /app
COPY . .
RUN export NODE_OPTIONS=--openssl-legacy-provider && yarn install
RUN export NODE_OPTIONS=--openssl-legacy-provider && yarn build
RUN rm -rf node_modules
RUN composer install
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh