|
@@ -1,8 +1,9 @@
|
|
|
|
|
+# syntax=docker/dockerfile:1
|
|
|
FROM node:18-alpine AS build
|
|
FROM node:18-alpine AS build
|
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
RUN npm config set registry https://registry.npmmirror.com
|
|
RUN npm config set registry https://registry.npmmirror.com
|
|
|
COPY package*.json ./
|
|
COPY package*.json ./
|
|
|
-RUN npm ci --legacy-peer-deps
|
|
|
|
|
|
|
+RUN --mount=type=cache,target=/root/.npm npm ci --legacy-peer-deps
|
|
|
COPY . .
|
|
COPY . .
|
|
|
RUN npx vite build
|
|
RUN npx vite build
|
|
|
|
|
|