14 lines
254 B
Docker
14 lines
254 B
Docker
FROM nginx as base
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
EXPOSE 18001
|
|
|
|
FROM node:20.18 as publish
|
|
WORKDIR /main
|
|
COPY . .
|
|
RUN npm i
|
|
RUN npm run build
|
|
|
|
FROM base AS final
|
|
WORKDIR /app
|
|
COPY --from=publish /dist/* .
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |