15 lines
245 B
Docker
15 lines
245 B
Docker
FROM node:22.15 as build
|
|
RUN mkdir /public
|
|
|
|
WORKDIR /public
|
|
COPY . .
|
|
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=build /public/dist /usr/share/nginx/html
|
|
COPY ./services/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80 |