khushalcodiste commited on
Commit
207a6dd
·
1 Parent(s): 5a331eb

feat: added

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,15 +5,15 @@ RUN apt-get update && \
5
  apt-get install -y --no-install-recommends libvips-dev && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # HF Spaces runs as uid 1000 — node user already has that uid
9
-
10
  WORKDIR /app
11
 
12
- COPY --chown=node:node package.json ./
13
  RUN npm install --omit=dev
14
 
15
- COPY --chown=node:node src/ src/
16
 
 
 
17
 
18
  USER node
19
 
 
5
  apt-get install -y --no-install-recommends libvips-dev && \
6
  rm -rf /var/lib/apt/lists/*
7
 
 
 
8
  WORKDIR /app
9
 
10
+ COPY package.json ./
11
  RUN npm install --omit=dev
12
 
13
+ COPY src/ src/
14
 
15
+ # Give node user ownership of everything (including node_modules/.cache)
16
+ RUN chown -R node:node /app
17
 
18
  USER node
19