diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..18d4ad0 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/package.json b/package.json index 30a3721..1229fcd 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "", "private": "true", "scripts": { - "build": "webpack", - "watch": "webpack --watch", - "start": "webpack serve --open --host 0.0.0.0 --port 8080" + "build": "NODE_OPTIONS=--openssl-legacy-provider webpack", + "watch": "NODE_OPTIONS=--openssl-legacy-provider webpack --watch", + "start": "NODE_OPTIONS=--openssl-legacy-provider webpack serve --open --host 0.0.0.0 --port 8080" }, "repository": { "type": "git",