feat: Step Function + small fixes + more services + color matching the services

This commit is contained in:
Zakaria
2026-09-28 18:38:22 -04:00
parent 0d613ae256
commit 548a15d7ec
23 changed files with 3219 additions and 52 deletions
+9 -6
View File
@@ -1,11 +1,14 @@
# Stage 1 — build frontend
FROM node:20-alpine AS frontend-build
WORKDIR /app
COPY packages/frontend/package.json ./
RUN npm install
COPY packages/frontend/ .
COPY OS_img/ /OS_img/
RUN npm run build
RUN corepack enable && corepack prepare pnpm@9.2.0 --activate
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY packages/api/package.json packages/api/package.json
COPY packages/frontend/package.json packages/frontend/package.json
RUN pnpm install --frozen-lockfile --filter @floci/frontend
COPY packages/frontend/ packages/frontend/
COPY OS_img/ OS_img/
RUN pnpm --filter @floci/frontend run build
# Stage 2 — compile API to a self-contained binary
FROM oven/bun:1-alpine AS api-build
@@ -20,7 +23,7 @@ FROM alpine:3
RUN apk add --no-cache ca-certificates libstdc++
WORKDIR /app
COPY --from=api-build /app/server ./server
COPY --from=frontend-build /app/dist ./public
COPY --from=frontend-build /app/packages/frontend/dist ./public
ENV PORT=4500
EXPOSE 4500
CMD ["./server"]