From cc5d980ad12c111de6e048b56a74b0f2c41648f5 Mon Sep 17 00:00:00 2001 From: Yoginth Date: Wed, 4 Dec 2024 18:23:52 +0530 Subject: [PATCH] Add invoice app --- apps/invoice/Dockerfile | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 apps/invoice/Dockerfile diff --git a/apps/invoice/Dockerfile b/apps/invoice/Dockerfile deleted file mode 100644 index 19f957e778a2..000000000000 --- a/apps/invoice/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -# Base image -FROM node:18-alpine AS base -RUN apk add --no-cache libc6-compat - -# Installer stage -FROM base AS installer -WORKDIR /app - -# Install pnpm globally -RUN npm install -g pnpm - -# Copy all files to the build context -COPY . . - -# Install dependencies -RUN pnpm install --frozen-lockfile - -# Prune dev dependencies to reduce image size -RUN pnpm prune --prod - -# Runner stage -FROM base AS runner -WORKDIR /app - -# Install pnpm globally -RUN npm install -g pnpm - -# Add non-root user for better security -RUN addgroup --system --gid 1001 hey -RUN adduser --system --uid 1001 app - -USER app - -# Copy built application and production dependencies from builder stage -COPY --from=installer /app . - -# Command to run the app -CMD sleep 3 && pnpm --filter @hey/cron run start