lucas-wa commited on
Commit
bdd82cb
·
1 Parent(s): 0b2e3e9

Fixing permission deined

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -12
Dockerfile CHANGED
@@ -12,12 +12,25 @@ RUN pip install --no-cache-dir --upgrade -r /code/server/requirements.txt --brea
12
 
13
  RUN pip install huggingface-hub --break-system-packages
14
 
 
 
 
 
 
 
 
 
 
 
 
15
  COPY entrypoint.sh /code/entrypoint.sh
16
 
17
  RUN chmod +x /code/entrypoint.sh
18
 
19
  RUN useradd -m -u 1000 user
 
20
  USER user
 
21
  ENV HOME=/home/user \
22
  PATH=/home/user/.local/bin:$PATH
23
 
@@ -27,16 +40,6 @@ COPY --chown=user . $HOME/app
27
 
28
  ENTRYPOINT ["/entrypoint.sh"]
29
 
30
- COPY web /code/web/
31
-
32
- RUN apt-get install -y curl
33
-
34
- RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - && apt-get install -y nodejs
35
-
36
- RUN cd web && npm install
37
-
38
- RUN cd web && npm run build
39
-
40
- WORKDIR /code/server
41
 
42
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "3000"]
 
12
 
13
  RUN pip install huggingface-hub --break-system-packages
14
 
15
+ COPY web /code/web/
16
+
17
+ RUN apt-get install -y curl
18
+
19
+ RUN curl -fsSL https://deb.nodesource.com/setup_21.x | bash - && apt-get install -y nodejs
20
+
21
+ RUN cd web && npm install
22
+
23
+ RUN cd web && npm run build
24
+
25
+
26
  COPY entrypoint.sh /code/entrypoint.sh
27
 
28
  RUN chmod +x /code/entrypoint.sh
29
 
30
  RUN useradd -m -u 1000 user
31
+
32
  USER user
33
+
34
  ENV HOME=/home/user \
35
  PATH=/home/user/.local/bin:$PATH
36
 
 
40
 
41
  ENTRYPOINT ["/entrypoint.sh"]
42
 
43
+ # WORKDIR /code/server
 
 
 
 
 
 
 
 
 
 
44
 
45
+ CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "3000"]