nahi002 commited on
Commit
0a78a3e
1 Parent(s): 646830a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -9
Dockerfile CHANGED
@@ -1,14 +1,18 @@
1
- # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.9
 
5
 
6
- WORKDIR /code
 
7
 
8
- COPY ./requirements.txt /code/requirements.txt
 
 
9
 
10
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
11
 
12
- COPY . .
13
-
14
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use the official Node.js image as base
2
+ FROM node:latest
3
 
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
 
7
+ # Copy the main.js file from the host to the container
8
+ COPY main.js .
9
 
10
+ # Install any dependencies required by your main.js file (if any)
11
+ # For example, if you have a package.json file, you can uncomment the following line
12
+ # COPY package.json .
13
 
14
+ # Install dependencies
15
+ RUN npm install
16
 
17
+ # Command to run the main.js file
18
+ CMD ["node", "main.js"]