Spaces:
Sleeping
Sleeping
File size: 481 Bytes
2bf9711 32a9e13 bb7e4dc cb666c5 bb7e4dc 2d5cd83 fe53290 cb666c5 0b6faa3 bb7e4dc 617d6a7 bb7e4dc f95abd8 bb7e4dc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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"] |