FROM node:lts AS uibuild WORKDIR /usr/src/app COPY ui/package*.json ui/yarn*.lock ./ RUN yarn --production=false COPY ui ./ RUN yarn build FROM tiangolo/uvicorn-gunicorn:python3.11-slim WORKDIR /usr/src/app ENV \ PRODUCTION_MODE="true" \ APP_MODULE="advent22_api.app:app" COPY api ./ RUN python -m pip --no-cache-dir install ./ COPY --from=uibuild /usr/src/app/dist /html