- Updated Dockerfile for the API to include build tools for C++11 required for native extensions. - Revised requirements.txt to upgrade several dependencies, including FastAPI and SQLAlchemy. - Expanded docker-compose.yml to add MinIO service for S3-compatible storage and improved health checks for backend and engine services. - Enhanced README.md in the Docker directory to provide detailed service descriptions and quick start instructions. - Updated mkdocs.yml to reflect new navigation structure and added deployment overview documentation. - Introduced new Dockerfiles for the engine and web services, including development configurations for hot reloading.
29 lines
633 B
Docker
29 lines
633 B
Docker
# Build stage
|
||
ARG REGISTRY_MIRROR=docker.1ms.run
|
||
FROM ${REGISTRY_MIRROR}/node:20-alpine AS builder
|
||
|
||
WORKDIR /app
|
||
|
||
COPY package.json package-lock.json ./
|
||
RUN npm ci
|
||
|
||
COPY . .
|
||
ARG VITE_API_BASE_URL=http://localhost:8100/api
|
||
ARG VITE_ENGINE_WS_URL=ws://localhost:8001/ws
|
||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||
ENV VITE_ENGINE_WS_URL=$VITE_ENGINE_WS_URL
|
||
RUN npm run build
|
||
|
||
# Serve stage (no nginx – Node + serve on port 6000)
|
||
ARG REGISTRY_MIRROR=docker.1ms.run
|
||
FROM ${REGISTRY_MIRROR}/node:20-alpine
|
||
|
||
RUN npm install -g serve
|
||
|
||
WORKDIR /app
|
||
COPY --from=builder /app/dist ./dist
|
||
|
||
EXPOSE 6000
|
||
|
||
CMD ["serve", "-s", "dist", "-l", "6000"]
|