feat: api endpoint parameter on build docker image
This commit is contained in:
parent
957ee1110f
commit
3be4dead24
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
|
ARG API_ENDPOINT="/api/"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM base as server
|
FROM base as server
|
||||||
|
|
@ -20,6 +22,7 @@ RUN pnpm run build
|
||||||
|
|
||||||
FROM base as client
|
FROM base as client
|
||||||
COPY ./client .
|
COPY ./client .
|
||||||
|
ENV VITE_API_ENDPOINT="$API_ENDPOINT"
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue