dockerfile

This commit is contained in:
Shautvast 2026-03-31 16:25:17 +02:00
parent fb59e9aabc
commit a1c331a546
2 changed files with 13 additions and 3 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80

View file

@ -4,9 +4,9 @@
"description": "", "description": "",
"private": "true", "private": "true",
"scripts": { "scripts": {
"build": "webpack", "build": "NODE_OPTIONS=--openssl-legacy-provider webpack",
"watch": "webpack --watch", "watch": "NODE_OPTIONS=--openssl-legacy-provider webpack --watch",
"start": "webpack serve --open --host 0.0.0.0 --port 8080" "start": "NODE_OPTIONS=--openssl-legacy-provider webpack serve --open --host 0.0.0.0 --port 8080"
}, },
"repository": { "repository": {
"type": "git", "type": "git",