Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -24,11 +24,19 @@ RUN npm install --production
|
|
24 |
|
25 |
# Final container merging Python and Node.js
|
26 |
FROM python:3.11-slim-bullseye
|
|
|
|
|
|
|
|
|
|
|
27 |
COPY --from=nodebuilder /app /app
|
28 |
WORKDIR /app
|
29 |
|
|
|
|
|
|
|
30 |
# Expose necessary ports
|
31 |
EXPOSE 3000 7860
|
32 |
|
33 |
# Run both services
|
34 |
-
CMD ["/bin/bash", "-c", "node server.js & uvicorn app:app --host 0.0.0.0 --port
|
|
|
24 |
|
25 |
# Final container merging Python and Node.js
|
26 |
FROM python:3.11-slim-bullseye
|
27 |
+
|
28 |
+
# Install Node.js manually
|
29 |
+
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
|
30 |
+
|
31 |
+
# Copy application files
|
32 |
COPY --from=nodebuilder /app /app
|
33 |
WORKDIR /app
|
34 |
|
35 |
+
# Ensure Uvicorn is installed
|
36 |
+
RUN pip install --no-cache-dir uvicorn
|
37 |
+
|
38 |
# Expose necessary ports
|
39 |
EXPOSE 3000 7860
|
40 |
|
41 |
# Run both services
|
42 |
+
CMD ["/bin/bash", "-c", "node server.js & uvicorn app:app --host 0.0.0.0 --port 7860"]
|