Spaces:
Sleeping
Sleeping
Damien Benveniste
commited on
Commit
·
fad7fef
1
Parent(s):
e1996ec
modified
Browse files- Dockerfile +27 -20
Dockerfile
CHANGED
@@ -30,33 +30,40 @@
|
|
30 |
# # Set the entrypoint
|
31 |
# ENTRYPOINT ["/app/entrypoint.sh"]
|
32 |
|
33 |
-
FROM python:3.9
|
34 |
|
35 |
-
# Create a non-root user
|
36 |
-
RUN useradd -m -u 1000 user
|
37 |
|
38 |
-
# Set the working directory in the container
|
39 |
-
WORKDIR /app
|
40 |
|
41 |
-
# Install vLLM
|
42 |
-
RUN pip install --no-cache-dir vllm
|
43 |
|
44 |
-
# Copy the entrypoint script
|
45 |
-
COPY entrypoint.sh /app/entrypoint.sh
|
46 |
|
47 |
-
# Change ownership of the working directory and entrypoint script to the non-root user
|
48 |
-
RUN chown -R user:user /app
|
49 |
|
50 |
-
# Change permissions of the entrypoint script
|
51 |
-
RUN chmod +x /app/entrypoint.sh
|
52 |
|
53 |
-
# Switch to the non-root user
|
54 |
-
USER user
|
55 |
|
56 |
-
# Set the PATH for the non-root user
|
57 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
58 |
|
59 |
-
EXPOSE 8000
|
60 |
|
61 |
-
# Set the entrypoint
|
62 |
-
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
# # Set the entrypoint
|
31 |
# ENTRYPOINT ["/app/entrypoint.sh"]
|
32 |
|
33 |
+
# FROM python:3.9
|
34 |
|
35 |
+
# # Create a non-root user
|
36 |
+
# RUN useradd -m -u 1000 user
|
37 |
|
38 |
+
# # Set the working directory in the container
|
39 |
+
# WORKDIR /app
|
40 |
|
41 |
+
# # Install vLLM
|
42 |
+
# RUN pip install --no-cache-dir vllm
|
43 |
|
44 |
+
# # Copy the entrypoint script
|
45 |
+
# COPY entrypoint.sh /app/entrypoint.sh
|
46 |
|
47 |
+
# # Change ownership of the working directory and entrypoint script to the non-root user
|
48 |
+
# RUN chown -R user:user /app
|
49 |
|
50 |
+
# # Change permissions of the entrypoint script
|
51 |
+
# RUN chmod +x /app/entrypoint.sh
|
52 |
|
53 |
+
# # Switch to the non-root user
|
54 |
+
# USER user
|
55 |
|
56 |
+
# # Set the PATH for the non-root user
|
57 |
+
# ENV PATH="/home/user/.local/bin:$PATH"
|
58 |
|
59 |
+
# EXPOSE 8000
|
60 |
|
61 |
+
# # Set the entrypoint
|
62 |
+
# ENTRYPOINT ["/app/entrypoint.sh"]
|
63 |
+
|
64 |
+
|
65 |
+
# ARG VERSION=v0.5.3.post1
|
66 |
+
FROM vllm/vllm-openai:latest
|
67 |
+
EXPOSE 8000
|
68 |
+
COPY entrypoint.sh /usr/local/bin/
|
69 |
+
ENTRYPOINT [ "entrypoint.sh" ]
|