victor HF staff commited on
Commit
ac02aed
·
1 Parent(s): 63caaa6
Files changed (2) hide show
  1. Dockerfile +3 -15
  2. README.md +11 -0
Dockerfile CHANGED
@@ -1,20 +1,8 @@
1
- # Use the official Node.js image as the base image
2
  FROM node:14
3
-
4
- # Set the working directory inside the container
5
- WORKDIR /usr/src/app
6
-
7
- # Copy package.json and package-lock.json to the working directory
8
  COPY package*.json ./
9
-
10
- # Install the dependencies
11
  RUN npm install
12
-
13
- # Copy the rest of the application code to the working directory
14
  COPY . .
15
-
16
- # Expose the port the app will run on
17
  EXPOSE 3000
18
-
19
- # Start the application
20
- CMD [ "node", "app.js" ]
 
 
1
  FROM node:14
2
+ WORKDIR app
 
 
 
 
3
  COPY package*.json ./
 
 
4
  RUN npm install
 
 
5
  COPY . .
6
+ VOLUME /data
 
7
  EXPOSE 3000
8
+ CMD [ "node", "app.js" ]
 
 
README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: persistent-storage
3
+ emoji: 🏢
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ pinned: false
8
+ port: 3000
9
+ ---
10
+
11
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference