File size: 600 Bytes
d78da00
 
bb23c43
d78da00
bb23c43
 
d78da00
 
c1859ea
bb23c43
d78da00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the official Node.js image as the base image
FROM node:20.4

# Set the working directory in the container
WORKDIR /app

# Git clone clewd
RUN git clone https://github.com/teralomaniac/clewd.git .
RUN sed -i'' 's|/v1/chat|/ai/v1/chat|g' /app/clewd.js

# Install the dependencies
RUN npm install --no-audit --fund false

# Change ownership of files in lib/bin and set permissions
RUN chown -R node:node lib/bin/* && \
    chmod u+x lib/bin/* && \
    chmod -R 777 /app

# Run as the "node" user for better security practices
USER node

RUN ls -la

# Start the application
CMD ["node", "clewd.js"]