2024-01-31 15:38:53 +01:00
|
|
|
FROM node:lts-alpine AS build
|
2024-01-31 14:55:55 +01:00
|
|
|
WORKDIR /app
|
2024-01-31 17:20:53 +01:00
|
|
|
COPY . .
|
2024-01-31 15:38:53 +01:00
|
|
|
RUN npm install --production && \
|
|
|
|
npm run build
|
2024-01-31 14:55:55 +01:00
|
|
|
|
2024-01-31 17:20:53 +01:00
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build --chown=nginx:nginx /app/dist /usr/share/nginx/html
|