dockerfile
This commit is contained in:
parent
fb59e9aabc
commit
a1c331a546
2 changed files with 13 additions and 3 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal 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
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue