fix: error
This commit is contained in:
parent
41d52feca4
commit
0ed598cb6f
5 changed files with 14 additions and 145 deletions
|
|
@ -10,7 +10,7 @@ ARG API_ENDPOINT="/api/"
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
FROM base as server
|
||||
FROM base AS server
|
||||
COPY ./server .
|
||||
|
||||
FROM server AS deps
|
||||
|
|
@ -20,13 +20,13 @@ FROM server AS build
|
|||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build
|
||||
|
||||
FROM base as client
|
||||
FROM base AS client
|
||||
COPY ./client .
|
||||
ENV VITE_API_ENDPOINT="$API_ENDPOINT"
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build
|
||||
|
||||
FROM base as prod
|
||||
FROM base AS prod
|
||||
COPY --from=deps /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/dist /app/dist
|
||||
COPY --from=server /app/static /app/static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue