ce676f20a4
Too many changes to split them up. This commit contains roughly two months worth of work. This commit introduces the first aggregate and rewrites the ticket system to follow DDD patterns. It adds Spartan NG as the new component library. TanStack Query to replace GraphQL. Oh and Prisma is almost over as well.
38 lines
1.0 KiB
Docker
38 lines
1.0 KiB
Docker
FROM node:20.19.1-slim AS builder
|
|
|
|
WORKDIR /app/builder
|
|
|
|
ENV LIBC=glibc
|
|
ENV npm_config_arch=x64
|
|
ENV npm_config_platform=linux
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
python3 \
|
|
make \
|
|
g++ \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY package*.json .
|
|
COPY packages/shared-dtos/package*.json ./packages/shared-dtos/
|
|
# COPY data-hub/data-connector/package*.json ./data-hub/data-connector/
|
|
COPY app-hub/dashboard/package*.json ./app-hub/dashboard/
|
|
|
|
RUN npm ci --verbose
|
|
|
|
COPY packages/shared-dtos ./packages/shared-dtos/
|
|
COPY app-hub/dashboard ./app-hub/dashboard/
|
|
|
|
WORKDIR /app/builder/app-hub/dashboard
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.19.2
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY --from=builder /app/builder/app-hub/dashboard/dist/dashboard/browser ./
|
|
COPY --from=builder /app/builder/app-hub/dashboard/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=builder /app/builder/app-hub/dashboard/docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |