dockerfile: use nginx to host static site
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user