nam pham commited on
Commit
07d8cea
·
1 Parent(s): e43f540

fix: generate client

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -24,6 +24,10 @@ FROM python:$PYTHON_VERSION-slim as runtime
24
  RUN mkdir -p /app/cache && chmod 777 /app/cache
25
 
26
  RUN useradd -m -u 1000 user
 
 
 
 
27
  USER user
28
 
29
  ENV VIRTUAL_ENV=/app/.venv \
@@ -31,8 +35,6 @@ ENV VIRTUAL_ENV=/app/.venv \
31
 
32
  COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
33
 
34
- COPY --chown=user . /app
35
-
36
  # Install litserve and requirements
37
  EXPOSE 8000
38
  CMD ["sh", "/app/bin/start-api.sh"]
 
24
  RUN mkdir -p /app/cache && chmod 777 /app/cache
25
 
26
  RUN useradd -m -u 1000 user
27
+
28
+ COPY . /app
29
+ RUN chown -R user:user /app
30
+
31
  USER user
32
 
33
  ENV VIRTUAL_ENV=/app/.venv \
 
35
 
36
  COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
37
 
 
 
38
  # Install litserve and requirements
39
  EXPOSE 8000
40
  CMD ["sh", "/app/bin/start-api.sh"]