12 lines
242 B
Plaintext
12 lines
242 B
Plaintext
|
FROM node:21-bookworm AS build
|
||
|
|
||
|
RUN node -v
|
||
|
WORKDIR /app
|
||
|
COPY . .
|
||
|
RUN npm install
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM nginx
|
||
|
COPY --from=build /app/dist/ /usr/share/nginx/html/
|
||
|
RUN rm /etc/nginx/conf.d/default.conf
|
||
|
COPY _nginx/nginx.conf /etc/nginx/conf.d
|