wuhp commited on
Commit
438f153
·
verified ·
1 Parent(s): a983ceb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -23,9 +23,9 @@ RUN npm install -g serve
23
  # Copy built assets from builder stage
24
  COPY --from=builder /app/dist ./dist
25
 
26
- # Hugging Face Spaces runs containers as user 1000
27
- RUN useradd -m -u 1000 user
28
- USER user
29
 
30
  # Hugging Face Spaces expects the app to listen on port 7860
31
  ENV PORT=7860
 
23
  # Copy built assets from builder stage
24
  COPY --from=builder /app/dist ./dist
25
 
26
+ # Hugging Face Spaces runs containers as user 1000, which is the default 'node' user in this image
27
+ RUN chown -R node:node /app
28
+ USER node
29
 
30
  # Hugging Face Spaces expects the app to listen on port 7860
31
  ENV PORT=7860