# Base image FROM node:18 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install # Copy seluruh project COPY . . # Tambahin ini: RUN chmod -R 777 /app/src/pages/sh # Use environment PORT ENV PORT=7860 EXPOSE 7860 # Run as non-root user (optional tapi recommended) RUN useradd -m user && chown -R user /app USER user # Start server CMD ["node", "."]