Spaces:
Paused
Paused
Update Dockerfile
Browse files123456789101112131415161718191120FROM node:18-slim
# Create the log and db directories and set permissionsRUN mkdir -p /usr/src/app/log /usr/src/app/db && \ chown -R node:node /usr/src/app/log /usr/src/app/db
# Set the working directoryWORKDIR /usr/src/app
# Copy package.json and package-lock.json firstCOPY package*.json ./
# Install dependenciesRUN npm install
# Copy the rest of your application filesCOPY . .
# Command to run your applicationCMD ["node", "index.js"]CMD ["node", "index.js"]Dockerfile+10-1