mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-23 13:13:00 +00:00
19 lines
378 B
Docker
19 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
|
||
|
|