advent22/Dockerfile
2023-09-16 21:57:19 +00:00

18 lines
378 B
Docker

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