Leon4gr45 commited on
Commit
ab5231c
·
verified ·
1 Parent(s): 1b461c7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -3,8 +3,9 @@ WORKDIR /app
3
  COPY package*.json ./
4
  RUN npm install
5
  COPY . .
6
- # Use npx and ensure it's pointing to the local vite, which npm install should have handled
7
- RUN npx vite build
 
8
 
9
  FROM node:20-slim
10
  WORKDIR /app
 
3
  COPY package*.json ./
4
  RUN npm install
5
  COPY . .
6
+ # Run as root explicitly just in case, though it should be default
7
+ USER root
8
+ RUN npm run build
9
 
10
  FROM node:20-slim
11
  WORKDIR /app