23 lines
494 B
Docker
23 lines
494 B
Docker
# syntax=docker/dockerfile:1.7
|
|
|
|
FROM quay.io/0voice/node:lts-alpine AS frontend
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g pnpm@8
|
|
|
|
COPY package.json pnpm-lock.yaml .npmrc ./
|
|
|
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
|
|
pnpm install --frozen-lockfile
|
|
|
|
COPY . .
|
|
|
|
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/
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |