enzostvs HF staff commited on
Commit
7fc5368
·
1 Parent(s): fcc7678

initial project

Browse files
Files changed (2) hide show
  1. Dockerfile +26 -0
  2. README.md +12 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+
3
+ # Use an official Node.js runtime as the base image
4
+ FROM node:18
5
+ USER 1000
6
+
7
+ # Set the working directory in the container
8
+ WORKDIR /usr/src/app
9
+
10
+ # Copy package.json and package-lock.json to the container
11
+ COPY --chown=1000 package.json package-lock.json ./
12
+
13
+ # Install dependencies
14
+ RUN npm install
15
+
16
+ # Copy the rest of the application files to the container
17
+ COPY --chown=1000 . .
18
+
19
+ # Build the Svelte Kit application for production
20
+ RUN npm run build
21
+
22
+ # Expose the application port (assuming your app runs on port 3000)
23
+ EXPOSE 3000
24
+
25
+ # Run the application in production mode
26
+ CMD ["node", "build"]
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: — WHOIS —
3
+ emoji: 🔍
4
+ colorFrom: pink
5
+ colorTo: blue
6
+ sdk: docker
7
+ app_port: 3000
8
+ pinned: false
9
+ license: mit
10
+ ---
11
+
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference