txtorg commited on
Commit
03395a4
·
verified ·
1 Parent(s): 557999e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
+
3
+ # Install git
4
+ RUN apt-get update && apt-get install -y git
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Clean /app in case anything is preexisting
10
+ RUN rm -rf /app/*
11
+
12
+ # Clone the full repository into /app
13
+ RUN git clone https://github.com/ReirLair/him.git /app
14
+
15
+ # Set full permissions (not recommended for production)
16
+ RUN chmod -R 777 /app
17
+
18
+ # Install dependencies if package.json exists
19
+ RUN npm install express axios uuid bcrypt cors
20
+
21
+ # Start the server
22
+ CMD ["node", "server.js"]