seonglae commited on
Commit
e04fb78
·
1 Parent(s): 798f326

feat: hf space corr-steer

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -14,6 +14,13 @@ RUN cp /root/.local/bin/uvx /usr/local/bin/uvx
14
  # Install pnpm
15
  RUN npm install -g pnpm
16
 
 
 
 
 
 
 
 
17
  # Set up a new user named "user" with user ID 1000
18
  RUN useradd -m -u 1000 user
19
 
@@ -27,10 +34,6 @@ ENV HOME=/home/user \
27
  # Set the working directory to the user's home directory
28
  WORKDIR $HOME/app
29
 
30
- # Copy Python requirements and install dependencies
31
- COPY --chown=user requirements.txt .
32
- RUN uv pip install --system --no-cache -r requirements.txt
33
-
34
  # Copy Python files
35
  COPY --chown=user server.py .
36
  COPY --chown=user config.py .
 
14
  # Install pnpm
15
  RUN npm install -g pnpm
16
 
17
+ # Set working directory for package installation
18
+ WORKDIR /app
19
+
20
+ # Copy Python requirements and install dependencies as root
21
+ COPY requirements.txt .
22
+ RUN uv pip install --system --no-cache -r requirements.txt
23
+
24
  # Set up a new user named "user" with user ID 1000
25
  RUN useradd -m -u 1000 user
26
 
 
34
  # Set the working directory to the user's home directory
35
  WORKDIR $HOME/app
36
 
 
 
 
 
37
  # Copy Python files
38
  COPY --chown=user server.py .
39
  COPY --chown=user config.py .