diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..061e6539f1a0819928b574ed011c9d2c7428ddef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM docker-proxy.jonasled.de/library/node:lts-alpine as node +WORKDIR /data +COPY . /data/ +RUN npm install && \ + npm run build + +FROM docker-proxy.jonasled.de/library/composer:2 as composer +WORKDIR /data +COPY --from=node /data /data/ +RUN composer install + +FROM gitlab.jonasled.de/jonasled/nginx-php-minimal:8-latest as production +COPY --from=node /data/dist/lagerverwaltung /var/www/html +COPY --from=node /data/api /var/www/html/api \ No newline at end of file