From ebdbb078ccb311b9ed2ec67a863fdc8477309719 Mon Sep 17 00:00:00 2001 From: Tour Date: Mon, 8 Dec 2025 09:14:48 +0100 Subject: [PATCH] init --- Dockerfile | 25 +++++++------------------ resources/OLD.json | 11 +++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 resources/OLD.json diff --git a/Dockerfile b/Dockerfile index 38a579d..046bd4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,12 @@ -# -- Build stage -- -FROM node:20-alpine AS build -WORKDIR /app - -# Alleen package-bestanden eerst (better caching) -COPY package*.json ./ -RUN npm ci || npm install - -# Dan de rest van de code -COPY . . - -# LET OP: pas dit aan als jouw build-script anders heet -RUN npm run build - -# -- Serve stage -- +# Simple static site image: serve the contents of /public with nginx FROM nginx:alpine WORKDIR /usr/share/nginx/html -# Pas dit aan als jouw outputmap niet 'dist' is (bijv. 'build') -COPY --from=build /app/dist ./ +# Copy static files +COPY public/ ./ -# Optioneel: eigen nginx.conf voor SPA routing +# If the site references additional resources, copy them too +COPY resources/ ./resources + +# Optional: provide your own nginx.conf for SPA routing # COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/resources/OLD.json b/resources/OLD.json new file mode 100644 index 0000000..8935835 --- /dev/null +++ b/resources/OLD.json @@ -0,0 +1,11 @@ +{ + "name": "nex", + "version": "0.0.1", + "description": "nex - overview", + "maintainers": [ + "michael@appmodel.nl" + ], + "scripts": { + "build": "mkdir -p dist && cp -r public/* dist/" + } +} \ No newline at end of file