Spaces:
Sleeping
Sleeping
FROM node:23.7.0 as builder | |
# Install git | |
RUN apt-get update && apt-get install -y git | |
# Clone the GitHub repository | |
RUN if [ -d "/usr/src/app/.git" ]; then cd /usr/src/app && git pull; else git clone https://github.com/abubasith456/Node-WLA.git /usr/src/app; fi | |
# Set the working directory | |
WORKDIR /usr/src/app | |
RUN ls | |
# Install npm dependencies | |
RUN npm install | |
RUN npm ci | |
# Expose the port your application runs on | |
EXPOSE 5000 | |
# Start the application | |
CMD ["npm", "start"] |