13 lines
372 B
Docker
13 lines
372 B
Docker
FROM quay.io/0voice/node:lts-alpine AS frontend
|
|
RUN npm install pnpm -g
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN pnpm bootstrap
|
|
RUN pnpm run build-only
|
|
|
|
FROM quay.io/0voice/nginx:1.25.4 AS web
|
|
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=frontend /app/dist/ /usr/share/nginx/html/
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|