11 lines
243 B
Docker
11 lines
243 B
Docker
|
FROM node:19-alpine as frontend
|
||
|
WORKDIR /frontend
|
||
|
COPY ./package.json ./
|
||
|
RUN npm install
|
||
|
COPY . .
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM nginx:1.19
|
||
|
WORKDIR /nginx
|
||
|
COPY ./nginx/conf.d /etc/nginx/conf.d
|
||
|
COPY --from=frontend /frontend/dist /usr/local/nginx/html
|