dockerfile: use nginx to host static site

This commit is contained in:
2024-09-17 14:51:59 -05:00
parent 08645727a8
commit b8198afd25
+2 -2
View File
@@ -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