# syntax=docker/dockerfile:1ARG NODE_VERSION=21.0.0 ARG PORT=3000 FROM node:${NODE_VERSION}-alpine as base WORKDIR /app FROM base as build COPY package.json /app/COPY pnpm-lock.yaml /app/ # Install pnpmRUN npm install -g pnpm # Install all depenciesRUN pnpm install ADD . /app RUN pnpm run build FROM base EXPOSE $PORT COPY --from=build /app/.output /app/.output CMD ["node", ".output/server/index.mjs"]
FROM python:3.9 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade -r requirements.txt COPY . . CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "80"]