Upload files to "workloads/ecommerce"
Build and Push Frontend / build (push) Failing after 47s

This commit is contained in:
2026-07-20 00:30:48 +00:00
parent afe3b4abea
commit 383b644929
5 changed files with 89 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
.git
.gitea
.next
node_modules
npm-debug.log*
.env*
README.md
+13
View File
@@ -0,0 +1,13 @@
HEADLESS_PROVIDER=mock
NEXT_PUBLIC_SITE_URL=https://shop.cruzcloud.net
NEXT_PUBLIC_WHATSAPP_URL=https://wa.link/rvcqqc
FREE_SHIPPING_THRESHOLD=250000
# Shopify Storefront API (optional)
SHOPIFY_STOREFRONT_URL=
SHOPIFY_STOREFRONT_TOKEN=
SHOPIFY_API_VERSION=2025-07
# Medusa REST (optional)
MEDUSA_BACKEND_URL=
MEDUSA_PUBLISHABLE_KEY=
+34
View File
@@ -0,0 +1,34 @@
FROM node:22-alpine AS deps
WORKDIR /app
COPY package.json ./
RUN npm install --no-audit --no-fund
FROM node:22-alpine AS builder
WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production \
NEXT_TELEMETRY_DISABLED=1 \
HOSTNAME=0.0.0.0 \
PORT=80
RUN apk add --no-cache libcap wget \
&& addgroup --system --gid 1001 nodejs \
&& adduser --system --uid 1001 nextjs \
&& setcap 'cap_net_bind_service=+ep' /usr/local/bin/node
COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD wget -qO- http://127.0.0.1/api/health || exit 1
CMD ["node", "server.js"]
+19
View File
@@ -0,0 +1,19 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": true,
"tsx": true,
"tailwind": {
"css": "app/globals.css",
"baseColor": "neutral",
"cssVariables": true
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
+16
View File
@@ -0,0 +1,16 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
poweredByHeader: false,
compress: true,
images: {
formats: ["image/avif", "image/webp"],
deviceSizes: [360, 640, 768, 1024, 1280, 1536],
},
experimental: {
optimizePackageImports: ["lucide-react", "motion"],
},
};
export default nextConfig;