px / Dockerfile
txtorg's picture
Update Dockerfile
6cbeb65 verified
Raw
History Blame Contribute Delete
449 Bytes
FROM node:20
# Install git
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Pre-install your npm packages (global app dependencies)
RUN npm install cors express-rate-limit express axios bcrypt fs-extra mongodb jsonwebtoken node-cron dotenv crypto
# Copy start script
COPY start.sh /start.sh
RUN chmod +x /start.sh
# Ensure /app has full permissions
RUN chmod -R 777 /app
EXPOSE 7860
CMD ["/start.sh"]