Team Ai
Apppublic

kernelimplode/clewd

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile28 linesDownload Raw Back to root
1# Use the official Node.js image as the base image2FROM node:20.43 4# Set the working directory in the container5WORKDIR /app6 7# Copy the package.json and package-lock.json files to the container8COPY package*.json ./9 10# Install the dependencies11RUN npm install --no-audit --fund false12 13# Copy the rest of the files to the container14COPY . .15 16# Change ownership of files in lib/bin and set permissions17RUN chown -R node:node lib/bin/* && \18    chmod u+x lib/bin/* && \19    chmod -R 777 /app20 21# Run as the "node" user for better security practices22USER node23 24RUN ls -la25 26# Start the application27CMD ["node", "clewd.js"]28