dockerfile: use nginx to host static site
This commit is contained in:
parent
08645727a8
commit
b8198afd25
@ -1,4 +1,4 @@
|
||||
FROM node:14-alpine
|
||||
FROM nginx:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -6,7 +6,7 @@ COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
COPY . /usr/share/nginx/html
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user