Spaces:
Paused
Paused
Update Dockerfile
Browse files1234567891011FROM node:18-slimWORKDIR /usr/src/appCOPY package*.json ./RUN npm installCOPY . .CMD ["node", "index.js"]1234567891011121314151617181920FROM 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"]
Dockerfile+10-1