9 lines
184 B
Docker
9 lines
184 B
Docker
FROM node:16
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN npm install && npm run build
|
|
|
|
FROM nginx:alpine
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY --from=0 /app/dist .
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |