takatorury commited on
Commit
c185dd0
·
verified ·
1 Parent(s): 10e0492

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-alpine
2
+
3
+ # Create app directory
4
+ WORKDIR /app
5
+
6
+ # Install dependencies
7
+ # A wildcard is used to ensure both package.json AND package-lock.json are copied
8
+ COPY package*.json ./
9
+ RUN npm install
10
+
11
+ # Bundle app source
12
+ COPY . .
13
+
14
+ # Set environment variables
15
+ ENV AUTH_TOKEN=s2568118
16
+ ENV NODE_ENV=production
17
+
18
+ # Expose the API port (adjust if your app uses a different port)
19
+ EXPOSE 3000
20
+
21
+ # Start the application
22
+ CMD ["node", "index.js"]