foundary-1770666514/Dockerfile
rdev-worker 4416aaf6d9
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: Set up the monorepo workspace. Ensure the root README describes a pro...
2026-02-09 19:51:18 +00:00

24 lines
455 B
Docker

# Stage 1: Install dependencies and build
FROM node:18-alpine AS build
WORKDIR /app
COPY package.json package-lock.json* ./
COPY packages/shared/package.json ./packages/shared/
COPY packages/web/package.json ./packages/web/
RUN npm install --ignore-scripts
COPY packages/ ./packages/
RUN npm run build
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/packages/web/dist /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]