Reality123b commited on
Commit
9654539
·
verified ·
1 Parent(s): 7c3f35a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ # Install SQLite and other dependencies
4
+ RUN apk add --no-cache sqlite
5
+
6
+ # Create app directory
7
+ WORKDIR /usr/src/app
8
+
9
+ # Copy package files
10
+ COPY package*.json ./
11
+
12
+ # Install dependencies
13
+ RUN npm install
14
+
15
+ # Copy app source
16
+ COPY . .
17
+
18
+ # Create directories for data and datasets
19
+ RUN mkdir -p /usr/src/app/data /usr/src/app/datasets
20
+
21
+ # Expose port
22
+ EXPOSE 3000
23
+
24
+ # Start the application
25
+ CMD ["node", "server.js"]