radames commited on
Commit
f1e3aed
·
1 Parent(s): 61996ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Start a new stage using python:3.9-alpine
20
- FROM python:3.9-alpine
21
 
22
- # Copy the built front-end files
23
- COPY --from=build-frontend /app/frontend/build /app/build
24
 
25
- COPY /backend /app
 
26
 
27
- # Install uvicorn
28
- RUN pip install uvicorn fastapi
29
 
30
- # Set the working directory
31
- WORKDIR /app
 
 
 
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