fix: frontend env
This commit is contained in:
parent
0ed598cb6f
commit
df62463151
3 changed files with 23 additions and 4 deletions
|
|
@ -23,6 +23,11 @@ RUN pnpm run build
|
|||
FROM base AS client
|
||||
COPY ./client .
|
||||
ENV VITE_API_ENDPOINT="$API_ENDPOINT"
|
||||
|
||||
ENV VITE_KC_REALM="VITE_KC_REALM"
|
||||
ENV VITE_KC_URL="VITE_KC_URL"
|
||||
ENV VITE_CLIENTID_KEYCLOAK="VITE_CLIENTID_KEYCLOAK"
|
||||
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build
|
||||
|
||||
|
|
@ -32,4 +37,8 @@ COPY --from=build /app/dist /app/dist
|
|||
COPY --from=server /app/static /app/static
|
||||
COPY --from=client /app/dist /app/static
|
||||
|
||||
CMD ["node", "./dist/app.js"]
|
||||
COPY ./entrypoint.sh ./entrypoint.sh
|
||||
|
||||
RUN chmod u+x ./entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue