teralomaniac commited on
Commit
5208e12
1 Parent(s): d70d08b

Upload 3 files

Browse files
Files changed (3) hide show
  1. .gitkeep +0 -0
  2. Dockerfile +27 -0
  3. docker-compose.yml +11 -0
.gitkeep ADDED
File without changes
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Node.js image as the base image
2
+ FROM node:20.4
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the package.json and package-lock.json files to the container
8
+ COPY package*.json ./
9
+
10
+ # Install the dependencies
11
+ RUN npm install --no-audit --fund false
12
+
13
+ # Copy the rest of the files to the container
14
+ COPY . .
15
+
16
+ # Change ownership of files in lib/bin and set permissions
17
+ RUN chown -R node:node lib/bin/* && \
18
+ chmod u+x lib/bin/* && \
19
+ chmod -R 777 /app
20
+
21
+ # Run as the "node" user for better security practices
22
+ USER node
23
+
24
+ RUN ls -la
25
+
26
+ # Start the application
27
+ CMD ["node", "clewd.js"]
docker-compose.yml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3'
2
+ services:
3
+ app:
4
+ build:
5
+ context: ..
6
+ dockerfile: docker/Dockerfile
7
+
8
+ ports:
9
+ - 8444:8444
10
+ volumes:
11
+ - ..:/app