sitcod3 commited on
Commit
170d092
·
verified ·
1 Parent(s): 80914d1

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -13,11 +13,11 @@ ENV VITE_SUPABASE_URL=$VITE_SUPABASE_URL \
13
 
14
  # Install dependencies first (layer caching)
15
  COPY package.json ./
16
- RUN npm install --prefer-offline --no-audit --no-fund --no-cache --prefer-offline --no-audit --no-fund
17
 
18
  # Copy source and build frontend + bundle server
19
  COPY . .
20
- RUN npm run build --if-present --if-present
21
 
22
  # ---- Stage 2: Production ----
23
  FROM node:20-alpine AS production
@@ -29,7 +29,7 @@ ENV NODE_ENV=production \
29
 
30
  # Install production-only dependencies (esbuild, vitest, typescript etc. excluded)
31
  COPY package.json ./
32
- RUN npm install --prefer-offline --no-audit --no-fund --no-cache --prefer-offline --no-audit --no-fund --omit=dev && npm cache clean --force
33
 
34
  # Copy the built output from builder stage
35
  COPY --from=builder /app/dist ./dist
@@ -44,3 +44,5 @@ CMD ["node", "dist/server.cjs"]
44
  # FORCE REBUILD 1789683005
45
 
46
  # FORCE REBUILD 1789683498
 
 
 
13
 
14
  # Install dependencies first (layer caching)
15
  COPY package.json ./
16
+ RUN npm install --prefer-offline --no-audit --no-fund --no-cache
17
 
18
  # Copy source and build frontend + bundle server
19
  COPY . .
20
+ RUN npm run build --if-present
21
 
22
  # ---- Stage 2: Production ----
23
  FROM node:20-alpine AS production
 
29
 
30
  # Install production-only dependencies (esbuild, vitest, typescript etc. excluded)
31
  COPY package.json ./
32
+ RUN npm install --prefer-offline --no-audit --no-fund --no-cache --omit=dev && npm cache clean --force
33
 
34
  # Copy the built output from builder stage
35
  COPY --from=builder /app/dist ./dist
 
44
  # FORCE REBUILD 1789683005
45
 
46
  # FORCE REBUILD 1789683498
47
+
48
+ # FORCE REBUILD 1789684080