12345678910111213141516 |
- FROM node:22
- WORKDIR /app
- # Copy your Node.js script into the container
- COPY . .
- # Install required packages
- RUN apt-get update && apt-get install -y sshpass ccze
- # Ensure the logs directory exists
- RUN mkdir -p /var/log/myapp && chmod -R 777 /var/log/myapp
- ENV CONNECTION_TOKEN="default-token"
- # Run the script and save logs in plain text
- CMD ["/bin/sh", "-c", "sh START_INSIDE_DOCKER.sh"]
|