pi / Dockerfile
txtorg's picture
Update Dockerfile
7710bff verified
Raw
History Blame Contribute Delete
357 Bytes
# Use the official Node.js LTS image
FROM node:18-alpine
# Set the working directory inside the container
WORKDIR /app
# Install dependencies
RUN npm install express cors axios node-cron
# Copy the entire project into the container
COPY . .
# Expose the port (must match the Express server port)
EXPOSE 7860
# Start the server
CMD ["node", "server.js"]