NoLev commited on
Commit
07e3d55
·
verified ·
1 Parent(s): e619481

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -26
Dockerfile CHANGED
@@ -1,26 +1,14 @@
1
- # Use an official Node.js runtime as the base image
2
- ARG NODE_VERSION=18
3
- FROM node:${NODE_VERSION}-slim
4
-
5
- # Install additional utilities for development (optional for debugging)
6
- RUN apt-get update && \
7
- apt-get install -y \
8
- bash \
9
- curl \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Set working directory
13
- WORKDIR /app
14
-
15
- # Copy package.json and install dependencies
16
- COPY package.json .
17
- RUN npm install
18
-
19
- # Copy the rest of the application code
20
- COPY . .
21
-
22
- # Expose the port the app runs on
23
- EXPOSE 3000
24
-
25
- # Run the application
26
- CMD ["npm", "start"]
 
1
+ FROM node:18.20.8
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package.json .
6
+ RUN npm install
7
+
8
+ COPY . .
9
+
10
+ RUN mkdir -p kyc_uploads && chmod 777 kyc_uploads
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["node", "server.js"]