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
|
WORKDIR /app
|
||||||
|
|
||||||
@ -6,7 +6,7 @@ COPY package*.json ./
|
|||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . /usr/share/nginx/html
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user