atikur-rabbi commited on
Commit
1aa8f9a
1 Parent(s): 6f47f93
Files changed (1) hide show
  1. Dockerfile +1 -33
Dockerfile CHANGED
@@ -16,41 +16,9 @@ COPY . /app
16
  # install need packages specified in package.json
17
  RUN npm install
18
 
19
- # expose port 7860 for acessing the app
20
- EXPOSE 7860
21
-
22
  # This allows Heroku bind its PORT the Apps port
23
  # since Heroku needs to use its own PORT before the App can be made accessible to the World
24
  EXPOSE $PORT
25
 
26
  # run app when container launches
27
- CMD ["node", "app.js"]
28
-
29
-
30
- # FROM ubuntu:20.04
31
-
32
- # # Install nodejs
33
- # RUN apt-get update && apt-get install -y curl
34
- # RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
35
- # RUN apt-get install -y nodejs
36
-
37
- # RUN useradd -m huggingface
38
-
39
- # # Create app directory
40
- # COPY . /home/huggingface/easy-diffusion
41
- # WORKDIR /home/huggingface/easy-diffusion
42
-
43
- # # Install app dependencies
44
- # # A wildcard is used to ensure both package.json AND package-lock.json are copied
45
- # # where available (npm@5+)
46
- # # COPY package*.json ./
47
-
48
- # RUN npm install
49
- # # If you are building your code for production
50
- # # RUN npm ci --only=production
51
-
52
- # # Bundle app source
53
- # COPY . .
54
-
55
- # EXPOSE 3000
56
- # CMD [ "node", "app.js" ]
 
16
  # install need packages specified in package.json
17
  RUN npm install
18
 
 
 
 
19
  # This allows Heroku bind its PORT the Apps port
20
  # since Heroku needs to use its own PORT before the App can be made accessible to the World
21
  EXPOSE $PORT
22
 
23
  # run app when container launches
24
+ CMD ["node", "app.js"]