Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -12
Dockerfile
CHANGED
@@ -16,20 +16,23 @@ RUN --mount=type=secret,id=PUBLIC_BACKEND_WS_URL,mode=0444,required=true \
|
|
16 |
|
17 |
RUN npm run build --prefix frontend/
|
18 |
|
19 |
-
|
20 |
-
|
21 |
|
22 |
-
#
|
23 |
-
|
24 |
|
25 |
-
|
|
|
26 |
|
27 |
-
#
|
28 |
-
RUN pip install uvicorn fastapi
|
29 |
|
30 |
-
#
|
31 |
-
|
|
|
|
|
|
|
32 |
|
33 |
-
# Run the uvicorn server
|
34 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
35 |
-
EXPOSE 8000
|
|
|
16 |
|
17 |
RUN npm run build --prefix frontend/
|
18 |
|
19 |
+
FROM nginx:alpine
|
20 |
+
COPY --from=build-frontend /app/frontend/build /usr/share/nginx/html
|
21 |
|
22 |
+
# # Start a new stage using python:3.9-alpine
|
23 |
+
# FROM python:3.9-alpine
|
24 |
|
25 |
+
# # Copy the built front-end files
|
26 |
+
# COPY --from=build-frontend /app/frontend/build /app/build
|
27 |
|
28 |
+
# COPY /backend /app
|
|
|
29 |
|
30 |
+
# # Install uvicorn
|
31 |
+
# RUN pip install uvicorn fastapi
|
32 |
+
|
33 |
+
# # Set the working directory
|
34 |
+
# WORKDIR /app
|
35 |
|
36 |
+
# # Run the uvicorn server
|
37 |
+
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
38 |
+
# EXPOSE 8000
|