diff --git a/apps/invoice/Dockerfile b/apps/invoice/Dockerfile deleted file mode 100644 index 19f957e778a..00000000000 --- 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