Files
sensor-web-v2/Dockerfile
Marco Crapts 59f872efeb
All checks were successful
continuous-integration/drone/push Build is passing
umiggrate from poetry to uv
2024-09-10 12:09:51 +02:00

19 lines
481 B
Docker

FROM node:20-slim AS frontend
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# CMD ["npm", "run", "server"]
FROM python:3.12-slim
COPY --from=frontend /app/dist /app/dist
WORKDIR /app/server-python
COPY --from=ghcr.io/astral-sh/uv:0.4.7 /uv /bin/uv
COPY server-python/pyproject.toml server-python/uv.lock ./
RUN uv sync --no-dev --frozen
COPY server-python/app.py .
ENV PRODUCTION="true"
CMD ["uv", "run", "fastapi", "run", "app.py", "--port", "3000"]