Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-bullseye as builder
|
| 2 |
+
WORKDIR /phoenix
|
| 3 |
+
RUN pip install --target ./env huggingface_hub
|
| 4 |
+
|
| 5 |
+
FROM arizephoenix/phoenix:12.18.0
|
| 6 |
+
# Set the working directory
|
| 7 |
+
WORKDIR /phoenix
|
| 8 |
+
|
| 9 |
+
# Copy Python runtime and installed packages
|
| 10 |
+
COPY --from=builder /phoenix/env/ ./env
|
| 11 |
+
|
| 12 |
+
COPY entrypoint.py .
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
ENV PHOENIX_HOST="0.0.0.0"
|
| 17 |
+
ENV PHOENIX_PORT=6006
|
| 18 |
+
ENV PHOENIX_WORKING_DIR=/phoenix
|
| 19 |
+
|
| 20 |
+
CMD ["entrypoint.py"]
|