mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
remove dockerfiles
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-freight-api/package.json ./apps/edr-freight-api/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store\
|
|
||||||
--mount=type=secret,id=npmrc,target=./.npmrc \
|
|
||||||
pnpm install --frozen-lockfile --filter @edr/freight-api...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-freight-api ./apps/edr-freight-api
|
|
||||||
RUN pnpm --filter @edr/freight-api build
|
|
||||||
|
|
||||||
FROM node:20-alpine AS runtime
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app/apps/edr-freight-api
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./../../node_modules
|
|
||||||
COPY --from=deps /app/apps/edr-freight-api/node_modules ./node_modules
|
|
||||||
COPY --from=build /app/apps/edr-freight-api/dist ./dist
|
|
||||||
COPY --from=build /app/apps/edr-freight-api/package.json ./package.json
|
|
||||||
|
|
||||||
EXPOSE 3001
|
|
||||||
CMD ["node", "dist/main.js"]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-freight-web/backoffice/package.json ./apps/edr-freight-web/backoffice/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @edr/freight-backoffice...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-freight-web/backoffice ./apps/edr-freight-web/backoffice
|
|
||||||
RUN pnpm --filter @edr/freight-backoffice build
|
|
||||||
|
|
||||||
FROM nginx:1.27-alpine AS runtime
|
|
||||||
COPY --from=build /app/apps/edr-freight-web/backoffice/dist /usr/share/nginx/html
|
|
||||||
EXPOSE 5183
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-freight-web/portal/package.json ./apps/edr-freight-web/portal/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @edr/freight-portal...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-freight-web/portal ./apps/edr-freight-web/portal
|
|
||||||
RUN pnpm --filter @edr/freight-portal build
|
|
||||||
|
|
||||||
FROM nginx:1.27-alpine AS runtime
|
|
||||||
COPY --from=build /app/apps/edr-freight-web/portal/dist /usr/share/nginx/html
|
|
||||||
EXPOSE 5173
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-passenger-api/package.json ./apps/edr-passenger-api/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @edr/passenger-api...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-passenger-api ./apps/edr-passenger-api
|
|
||||||
RUN pnpm --filter @edr/passenger-api run prisma:generate
|
|
||||||
RUN pnpm --filter @edr/passenger-api build
|
|
||||||
|
|
||||||
FROM node:20-alpine AS runtime
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app/apps/edr-passenger-api
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./../../node_modules
|
|
||||||
COPY --from=deps /app/apps/edr-passenger-api/node_modules ./node_modules
|
|
||||||
COPY --from=build /app/apps/edr-passenger-api/dist ./dist
|
|
||||||
COPY --from=build /app/apps/edr-passenger-api/package.json ./package.json
|
|
||||||
COPY --from=build /app/apps/edr-passenger-api/prisma ./prisma
|
|
||||||
|
|
||||||
EXPOSE 4000
|
|
||||||
CMD ["node", "dist/main.js"]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-passenger-web/backoffice/package.json ./apps/edr-passenger-web/backoffice/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @edr/passenger-backoffice...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-passenger-web/backoffice ./apps/edr-passenger-web/backoffice
|
|
||||||
RUN pnpm --filter @edr/passenger-backoffice build
|
|
||||||
|
|
||||||
FROM nginx:1.27-alpine AS runtime
|
|
||||||
COPY --from=build /app/apps/edr-passenger-web/backoffice/dist /usr/share/nginx/html
|
|
||||||
EXPOSE 5184
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM node:20-alpine AS base
|
|
||||||
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS deps
|
|
||||||
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
|
|
||||||
COPY apps/edr-passenger-web/portal/package.json ./apps/edr-passenger-web/portal/
|
|
||||||
COPY packages ./packages
|
|
||||||
RUN pnpm install --frozen-lockfile --filter @edr/passenger-portal...
|
|
||||||
|
|
||||||
FROM deps AS build
|
|
||||||
COPY apps/edr-passenger-web/portal ./apps/edr-passenger-web/portal
|
|
||||||
RUN pnpm --filter @edr/passenger-portal build
|
|
||||||
|
|
||||||
FROM nginx:1.27-alpine AS runtime
|
|
||||||
COPY --from=build /app/apps/edr-passenger-web/portal/dist /usr/share/nginx/html
|
|
||||||
EXPOSE 5174
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
Reference in New Issue
Block a user