fix(deploy): serialize production frontend build
Some checks failed
CI / test (push) Failing after 8m44s
Some checks failed
CI / test (push) Failing after 8m44s
This commit is contained in:
parent
941df4c8c7
commit
0326ec5d03
@ -11,6 +11,8 @@ RUN npm run build
|
|||||||
FROM python:3.11.15-slim-bookworm AS runtime
|
FROM python:3.11.15-slim-bookworm AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=frontend-build /app/frontend/web/dist ./frontend/web/dist
|
||||||
|
|
||||||
ARG BUILD_COMMIT=unknown
|
ARG BUILD_COMMIT=unknown
|
||||||
ARG BUILD_TIME=unknown
|
ARG BUILD_TIME=unknown
|
||||||
ENV AGENTEVAL_BUILD_COMMIT=${BUILD_COMMIT}
|
ENV AGENTEVAL_BUILD_COMMIT=${BUILD_COMMIT}
|
||||||
@ -37,7 +39,6 @@ COPY backend ./backend
|
|||||||
|
|
||||||
RUN pip install --no-cache-dir -e .
|
RUN pip install --no-cache-dir -e .
|
||||||
|
|
||||||
COPY --from=frontend-build /app/frontend/web/dist ./frontend/web/dist
|
|
||||||
COPY config/config.example.json ./config/config.json
|
COPY config/config.example.json ./config/config.json
|
||||||
RUN mkdir -p ./data/scenarios ./data/reports
|
RUN mkdir -p ./data/scenarios ./data/reports
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user