mikmc commited on
Commit
5d069bc
·
verified ·
1 Parent(s): ea70b43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,8 +13,11 @@ RUN npm install --production
13
  # Copy the rest of the application code to the container
14
  COPY . .
15
 
16
- # Expose the port your app will run on
 
 
 
17
  EXPOSE 3000
18
 
19
- # Command to start the app
20
  CMD ["npm", "start"]
 
13
  # Copy the rest of the application code to the container
14
  COPY . .
15
 
16
+ # Set environment variable to production
17
+ ENV NODE_ENV=production
18
+
19
+ # Expose the port Hugging Face uses
20
  EXPOSE 3000
21
 
22
+ # Start the app using the port Hugging Face will bind to
23
  CMD ["npm", "start"]