bsvp / Dockerfile
NexusV1's picture
Update Dockerfile
0ce3bc7 verified
Raw
History Blame Contribute Delete
644 Bytes
# Use Node.js image
FROM node:20
# Set working directory
WORKDIR /app
# Copy server and bot files
COPY server.js .
COPY bot/ ./bot/
# Set full permissions for bot/
RUN chmod -R 777 bot/
# Ensure a session file exists with full permissions
RUN mkdir -p bot && touch bot/aayco.session && chmod 777 bot/aayco.session
# Create bot/downloads directory and ensure full permissions
RUN mkdir -p bot/downloads && chmod -R 777 bot/downloads
# Copy package files and install dependencies
RUN npm install input telegram node-telegram-bot-api express axios
# Expose the port your app runs on
EXPOSE 7860
# Start the server
CMD ["node", "server.js"]