hprasath commited on
Commit
d9191ca
1 Parent(s): def7ef9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -10
Dockerfile CHANGED
@@ -1,8 +1,4 @@
1
- FROM python:3.9
2
-
3
- # Install Node.js
4
- RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
5
- RUN apt-get install -y nodejs
6
 
7
  # Set working directory
8
  WORKDIR /code
@@ -16,10 +12,15 @@ COPY ./package-lock.json /code/package-lock.json
16
  RUN npm install
17
 
18
  # Copy Python application files
19
- COPY . .
 
 
 
 
 
20
 
21
- # Install uvicorn and other Python dependencies
22
- RUN pip install uvicorn huggingface_hub transformers
23
 
24
- # Start both Python and Node.js applications
25
- CMD ["uvicorn", "app.main:index", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM node:16
 
 
 
 
2
 
3
  # Set working directory
4
  WORKDIR /code
 
12
  RUN npm install
13
 
14
  # Copy Python application files
15
+ COPY ./app /code/app
16
+
17
+ # Install Python and necessary dependencies
18
+ RUN apt-get update && \
19
+ apt-get install -y python3-pip && \
20
+ pip3 install --no-cache-dir uvicorn fastapi
21
 
22
+ # Expose port
23
+ EXPOSE 7860
24
 
25
+ # Start Node.js application
26
+ CMD ["node", "index.js"]